python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Generate initial guess for any function?
Here is the Newton's method code from Wikipedia page:
x0 = 1 # The initial guess
f(x) = x^2 - 2 # The function whose root we are trying to find
fprime(x) = 2x ...
123iamking
Votes: 0
Answers: 0
Newton-Raphson method (square root) in Pascal, recursion
I want to implement this square root method in Pascal using recursion. However, I have some problems understanding how to transfer iterative method into recursive method:
Program NewtonRaphsonRecursiv...

Brian Brown
Votes: 0
Answers: 2
Newton-Raphson in Pascal, not very good results
I implemented Newton-Raphson metohd in Pascal. It's strange because the same code in C++ gives good results (for 9 it's 3) but in Pascal for 9 it's 3.25, Why so?
Pascal:
Program NewtonRaphsonIter(outp...

Brian Brown
Votes: 0
Answers: 1