arclooney

10 Reputation

2 Badges

11 years, 169 days

MaplePrimes Activity


These are replies submitted by arclooney

Never Mind I figured it out, you were right on the sin(x) thing thanks!

Never Mind I figured it out, you were right on the sin(x) thing thanks!

I changed the parameters to a=1 and b=pi so it now looks like this

 

with(Student[NumericalAnalysis]);
f := x-2*sin(x);
                          x - 2 sin(x)

a := 1;
                               1

b := pi;
                               pi
Bisection(f, x = [1, pi], tolerance = 1/10000);


but I am now getting the error

 

Error, (in Student:-NumericalAnalysis:-Roots) expecting two initial real approximates

Any help would be appreciated

 

I changed the parameters to a=1 and b=pi so it now looks like this

 

with(Student[NumericalAnalysis]);
f := x-2*sin(x);
                          x - 2 sin(x)

a := 1;
                               1

b := pi;
                               pi
Bisection(f, x = [1, pi], tolerance = 1/10000);


but I am now getting the error

 

Error, (in Student:-NumericalAnalysis:-Roots) expecting two initial real approximates

Any help would be appreciated

 

Page 1 of 1