Question: Cannot determine if this expression is true or false for a bisection problem.

I am trying to finish up an assignment but this problem is giving me issues. The problem is to find the first positive value of x=2sinx to within 10^-5

I used the following code

 

with(Student[NumericalAnalysis]);
f := x-2*sinx;
                           x - 2 sinx
a := 1;
                               1
b := 2;
                               2
Bisection(f, x = [a, b], tolerance = 1/10000, output = sequence, maxiterations = 20);

to which I received the error:

Error, (in Student:-NumericalAnalysis:-Roots) cannot determine if this expression is true or false: 0 <= signum(0, -1.+2.*sinx, 0)*signum(0, -2.+2.*sinx, 0)

 

Please help me figure out what's wrong.

Please Wait...