Sunday, September 03, 2006

Project1

For question 6 when finding the cube root of a number using the Newton-Raphson Method it requires an estimate x0, as stated in the question. However do you want the estimate to be computed based on the given value, or do you want us to give the function an estimate?

2 comments:

Lei Tang said...

X0 is an intial estimate. You can randomly assign a value to it.

Kartik said...

Yes, I assigned a random value and it seems to work for me.

However, here's one look-out flag-

When I defaulted x0 to an integral value, more often than not lisp would return the result of the function as a huge integer divided by another huge integer, so it really looks like your function isn't working.

One way to get round this is to default x0 to a decimal value.