Question: Write an ARM ASSEMBLY LANGUAGE program that takes a positive real number x and accuracy e from the user terminal input and computes the reciprocal

Write an ARM ASSEMBLY LANGUAGE program that takes a positive real number x and accuracy e from the user terminal input and computes the reciprocal of the square root of x (that is,1/sqrt(x)) by using the following Newton-Rapson algorithm:
1. Initialize x_new = x
2. do
x_old = x_new;
x_new =(x_old +1/(x * x_old))/2; while |x_old - x_new|/x_new > e
Print the computer value to the terminal. Also, print the reciprocal of the square root value computed by using vsqrt FPU instruction

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 Programming Questions!