CAS NSolve sine-equation for given interval

SigurdTN shared this problem 4 years ago
Not a Problem

Hi.


We have encountered a problem solving a sine-equation for a given x-interval.

The exact solution works fine, but not the numerical solution.

WORKS:


  1. Solve[{sin(x) = 0.28, x>=0, x<pi}]

GIVES QUESTION MARK ONLY


  1. NSolve[{sin(x) = 0.28, x>=0, x<pi}]


Is there a reason for this? Or a quick fix?

0e87494698f0619f84a1127d643c1bb5

( Løs[] and NLøs[] are Norwegian commands for Solve[] and NSolve[] )

Geogebra 5.0.321.0, MacOS


Thanks in advance. :)

Best Answer
photo

ps or this with the Numeric Evaluation Tool

  1. Solve[{sin(x) = 0.28, x>=0, x<pi}]

Comments (5)

photo
1

Sorry, this syntax is wrong, please see https://wiki.geogebra.org/e...


  1. NSolve[{sin(x) = 0.28, x>=0, x<pi}]

This is the correct syntax :)

  1. NSolve[sin(x) = 0.28, x=1]

photo
2

ps or this with the Numeric Evaluation Tool

  1. Solve[{sin(x) = 0.28, x>=0, x<pi}]

photo
1

Tanks. So there is no way to make cas evaluate all the numerical values of the asines within the given interval? When Solve[{sin(x) = 0.28, x>= 0, x < 4pi}] gives four solutions, NSolve[sin(x) = 0.28, x=1] gives only one.


It is of course no BIG deal, as one could always do it manually, but it would be a nice feature.

:-)

photo
1

Sorry, now I understood what you meant! Thanks a lot!

photo
2

Also


  1. Numeric[Solve[{sin(x) = 0.28, x>=0, x<pi}]]

© 2021 International GeoGebra Institute