Well, that would almost work, except that for something like (2x^2 - 8x - 41) / (x-7).
A = 2 B+A*R = 6 C+B*R+A*R^2 = 1 This is actually pretty close: 2x + 8 + (1 / (x-7)) I guess there isn't any one way to really make this program work, unless you have any ideas. Thanks, Stephen Craton http://www.melchior.us - -----Original Message----- - From: Daniel Purdy [mailto:[EMAIL PROTECTED] - Sent: Tuesday, April 20, 2004 4:58 PM - To: Daniel Purdy; Stephen Craton - Cc: PHP List - Subject: RE: [PHP] Calculator Script - - [snip] - A = 1 - B+A*R = 9 - C+B*R+A*R^2 = -7 - - I get (b/3) + 3 - (7/3b) when I work it out by hand, and a teacher of - mine got the same thing. What exactly is this program finding, since it - obviously isn't any coefficients? - [/snip] - - Acutally, looking at it further, it looks like it actually almost did it - correctly. If you take the results that the calculator gave you and - divide them by 3 then you get your answer. So the caluclator divides it - by b then you have to add in a part of it to divide by the 3. HTH!! - - -- - PHP General Mailing List (http://www.php.net/) - To unsubscribe, visit: http://www.php.net/unsub.php - - -- - PHP General Mailing List (http://www.php.net/) - To unsubscribe, visit: http://www.php.net/unsub.php - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php