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
A: It allows a program to reference an identifier in global scope which has been hidden by another identifier along with the same name in the local scope.

i have a project in BDD(Binary Decision Diagram).. where i have to use BDD library...i m using cudd package which uses BDD technique...i download cudd package..try to run in vc++ 6

Program to design list in c: Write a program in c to insert the values in list void main() { int i=0; char a[20]; clrscr(); printf("Enter the line\n");

Compiler Design - Limit In The Method Instructions

#Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new techn

Project Description: collect / modify person records / photo images/ lookup / facebook iphone and ipad App basic function : 1 user will configure facebook connection

for different operation multiple stack

Is it legal for a member function to say delete this? A: As long as you're cautious, it's OK for an object to delete this. Here's how I define "cautious": You have to be a

Structures A structure is a user-defined data type, which may have different data types as its members. Creating a structure is a two-part process. First, a structure template

c program to construct a structure: struct sensus                 {                                 char name[30];                                 long int population;