Using bisection search to determine

后端 未结 2 489
有刺的猬
有刺的猬 2021-01-17 05:48

I have posted other thread but it did not receive answers thus i\'m trying to provide some of my work to make more clear.

I need to use bisection method to determine

相关标签:
2条回答
  • 2021-01-17 06:27

    This is the key:

    while abs(x) > epsilon:
        x = balance
        for month in range(0, 12):
            x = (x - ans) * (1+monthly_interest)
    
    0 讨论(0)
  • 2021-01-17 06:29

    remember to round to 2 decimal places otherwise MITx will not accept the answer

    0 讨论(0)
提交回复
热议问题