Hello

I was wondering if anyone had code for calcualting APR using binary chop. I have been able to find some code for solving APR using Newton Rhapson and this seems to work ok but for various reasons I have been advised to use the binary chop method and compare my answers to this

In this booklet here there are guidelines for how to go about this

http://www.creditunion.ie/files/file_20050316024652OFT%20-%20Credit%20Charges%20and%20APR.pdf
(bisection method page 49) but this is a little too high leve psuedo code for me and could do with knowing what formulae to apply where in this code.

I can find examples online for how to solve this in matlab but i dont have access to matlab. I have access to /net, php and things like that. I can also use a groovy console online

Thanks a lot and happy christmas