This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ber of years you live after retirement.
Find the maximal expenses you can withdraw each year from your retirement fund, such that by your death, you will have a positive amount in your bank. You may use binary search in order to find the
maximal expenses. In order not to continue forever you should stop when your expenses result in a
positive value which is smaller than epsilon. Special 5 points bonus will be given to those of you who
instead of using binary search will use arithmetics and will return a value that will leave your account with
0 in the end of your life. Specify in your README which method did you use.
Your function should return the maximal expenses value you found.
lv_ieakn(aay ae r_eiegot_ae,
Write your code in the appropriate place in the ex4.py template. To test your function, compare it with
the school solution.
Implement b b l _ o t 2 d v l e In this assignment, you will implement a function that
receives a list of...
View Full Document
This document was uploaded on 03/20/2014 for the course CMSC 67101 at Hebrew University of Jerusalem.
- Spring '14