I'm new to programming, and this is my first college class
how can i programming below picture by newton-raphson method with c++?
I'm new to programming, and this is my first college class
how can i programming below picture by newton-raphson method with c++?
You:
- Posted a C++ question on the C sub-forum
- Didn't bother to write the exact question, but included a fuzzy photo of your terrible handwriting instead
- Didn't even bother to check the Wikipedia articles on Newton-Raphson method or Methods of computing square roots
If you're not willing to spend any effort, why should anyone else bother?
Which in this case give you this formula:
https://en.wikipedia.org/wiki/Square...ion_algorithms
Declare an array of floats or doubles. Now start with a value, let's say x1=1.5, and use the formula to compute x2, x3, x4 etc. These values go more closer to sqrt 2.