Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help converting this expression

Status
Not open for further replies.

Th3Ang3l

Programmer
Jul 2, 2003
1
PK
hii guys

Needed some help in converting this C code to assembly havnt been successful yet in my case after the 1st division
it doesnt add properly in FPU.
so heres the C++code:
double x = a;
double xprev = 0;
while (((xprev - x) > tol) || ((x - xprev) > tol))
{
xprev = x;
x = (xprev + (a / xprev))/2;
}
return x;
thanks,
its urgent :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top