Question: 8. Write an algorithm, so that given any positive integer n, the algorithm outputs the integer part of the positive real number x such that

 8. Write an algorithm, so that given any positive integer n,

8. Write an algorithm, so that given any positive integer n, the algorithm outputs the integer part of the positive real number x such that x3+100x = n. Besides assignment and comparison, your algorithm may only use the four basic arithmetical operations, namely addition/subtraction/multiplication/division. For example, when n = 50000, the equation x3+100x = 50000 has a positive real number solution x=35.9357.... In this case the algorithm should output 35

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!