Finding Roots of b1 and b2 Between 0 and 30

  • Thread starter Thread starter 85David
  • Start date Start date
  • Tags Tags
    Roots
AI Thread Summary
The discussion focuses on finding the roots of two functions, b1 and b2, defined in terms of trigonometric and polynomial expressions, within the interval of 0 to 30. After plotting the functions, it is observed that there are two roots, but using Maple's fsolve function yields only one root at approximately 12.84. To resolve this, it is suggested to plot the functions to identify the intervals containing each root and then apply fsolve separately within those specific intervals. For example, if the roots are identified as being around 5 and 15, fsolve should be called with the intervals 0 to 10 for the first root and 10 to 30 for the second root, ensuring that each call to fsolve targets only one root at a time.
85David
Messages
1
Reaction score
0
Ok, i got two funktions:
b1:=(x/10)+sin((x/3)+(Pi/2));
and
b2:=(1-2*cos((x/4)+(Pi/2)));

I need to determine all the roots between 0 < x > 30

If I plot the functions i see that there should be two roots
plot([b1,b2],x=0..30);

But when try to get maple to calculate the roots It only comes up with one root:
fsolve(b1=b2,x=0..30);
12.83815087

Thanks and sorry for my bad english.
 
Physics news on Phys.org
Plot the function and get an idea of where the roots are, then tell maple to find the roots in an interval that contains only one of the two roots. So if the roots are 5 and 15, then fsolve([b1,b2],x=0..10) and for the other one 10..30
 

Similar threads

Back
Top