Create program to newtons method for cube roots, C/C++ Programming

Newton's method for cube roots is based on the fact that if y is an approximation to the cube root of x, then a better approximation is given by the value:

(x/y2+2y)/3

(a) Use this formula to implement a cube-root procedure analogous to the square-root procedure from the lecture notes.

(b) Modify your original implementation to allow the good-enough? procedure to be included as a argument to the cube-root procedure; i.e., (cube-root 3 good-enough?). In this way, roots of arbitrary precision should be possible by defining new forms of good-enough?

 

Posted Date: 3/25/2013 1:49:55 AM | Location : United States







Related Discussions:- Create program to newtons method for cube roots, Assignment Help, Ask Question on Create program to newtons method for cube roots, Get Answer, Expert's Help, Create program to newtons method for cube roots Discussions

Write discussion on Create program to newtons method for cube roots
Your posts are moderated
Related Questions
write a c++ program, that finds the minimum total number of shelves, including the initial one, required for this loading process.

What happens if you write following code? string& foo()

Program is to store marks and name, roll no in a file: class stud   {     int rno;     char name[20];     int m1,m2,m3;     public:                 void acce

finds the average for all assignments for an individual student float getAverageForStudent(float scores[20][10], int student, int numAssignments) {  }  // finds the average for

polishing the jewel game with c coding

padovan string for n natural numbers p(n)=1,p(n)=2,p(n)=3 and use padovan formul to get output 1

Compiler Design - Limit In The Method Instructions

A: No. There is nothing you can do in C++ which you cannot do in C. In spite of everything

you are to create a text adventure game that uses pointers. You have a rich, eccentric Uncle Billy who is soon to be deceased. How soon.....oops......he''s gone. He has left yo

Define the Int Data Type of C Language? The int is used to define integer numbers. The Integers are whole numbers with a range of values supported by a particular machine and t