Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help, please #3

Closed
henq98 opened this issue Jan 6, 2020 · 3 comments
Closed

Help, please #3

henq98 opened this issue Jan 6, 2020 · 3 comments

Comments

@henq98
Copy link

henq98 commented Jan 6, 2020

First, happy new year!

Could you help me in my case, where I need an intended value of pmt (periodic paymount) by changing the rate (float number)? It seems to me that this goalSeek function doesn't handle this case well.

My code: https://repl.it/@henriqueyang/goal-seek-pmt

Thanks!

@henq98 henq98 changed the title Help Help, please Jan 6, 2020
@adam-hanna
Copy link
Owner

adam-hanna commented Jan 6, 2020

@henriqueyang sure, I'll gladly help! Let me take a look :)

@adam-hanna
Copy link
Owner

@henriqueyang Ok, I took a look.

First, let me apologize, my code is a mess and needs to be updated.

Second, I should have added a feature called "max jump" that doesn't allow the inputs to be moved any more than X. The problem was, your function was very sensitive to changes to inputs, and couldn't handle negative interest rates. The goal seek function was making these huge swings and sometimes going negative, which was causing it to err.

Anyway, I made some minor changes. here:
https://repl.it/repls/DangerousExcitedDriver

@henq98
Copy link
Author

henq98 commented Feb 11, 2020

Hey Adam, sorry for taking so long to answer you. I got it with bisection method. Thank you for supporting!

2020-02-11_11-08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants