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
Relationship between an Array and Pointers. Consider the following. int arr[] = {0,1,2,3,4,5,6,7,8,9}; If we write arr , it is considered as the address of the first elem

i want a c or c++ code for solving transportation problem using modified distribution method

how to declare multi dimensional array

Introduction to C++ C++ was developed by Bjarne Stroustrup at Bell Laboratories in 1983. Originally, it was known as " C with class". C+ as an enhancement to the C language was

Q:  Tells the operators one can override; which operators should he override? A: Bottom line: don't puzzle your users. Remember the reason of operator overloading: to decreas

Write a program to count the prime number in array


write c program to do the following : -fill 2 dimensional array (square matrix array with size=4). -ask the user to enter any integer number and add this number to the diagonals -o

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

program to find if a no . is prime or not