|
-
Oct 10th, 2002, 07:13 PM
#1
Thread Starter
New Member
Why won't this code compile??
Every time I attempt to compile this code, I'm receiving a number of errors. Any ideas as to what the problem(s) might be?
Thanks.
public class MyMath
{
public static double exp(double x)
{
double dbloldGuess;
double dblnewGuess = 1 + x;
double dblcounter = 1;
do
{
dblcounter++;
dbloldGuess = dblnewGuess;
dblnewGuess = dbloldGuess + ((x ** dblcounter) / counter);
}
while (Math.abs((newGuess - oldGuess) / newGuess) > 1e-15);
return x;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|