help needed with an equation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
narafir
Forum Newbie
Posts: 2
Joined: Wed Dec 03, 2008 4:39 am

help needed with an equation

Post by narafir »

Hello!!! I was wondering if someone could help me find the i in the following, using PHP... Unfortunately I am just too noob to do this myself 8O

2934,70 = [141,52 / (1 + i )^1/12] + [141,52 / (1 + i )^2/12] + ... + [141,52 / (1 + i )^23/12] + [141,52 / (1 + i )^24/12]

The correct answer is i = 0,15405. But how can we get there with code???
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: help needed with an equation

Post by requinix »

...

Why PHP?
narafir
Forum Newbie
Posts: 2
Joined: Wed Dec 03, 2008 4:39 am

Re: help needed with an equation

Post by narafir »

Thank you for your reply.

Well, it is a piece of a project running in PHP. But it doesn't matter, really, pseudocode would work just fine for me :)
So... any ideas?
Post Reply