Unable to solve symbolically.

I want to solve x, and it shows the warning messege "Unable to solve symbolically". It tells me to use vpasolve, but I don't want the "0" answer. Below is my code.
>syms x real;
>sol = solve(sin(x)==0.703*x,x);
What should I do to solve x?
Thanks

 Respuesta aceptada

Torsten
Torsten el 29 de Oct. de 2018

1 voto

x0 = [1 2];
fun = @(x)sin(x)-0.703*x;
sol = fzero(fun,x0)

2 comentarios

Roger Jiang
Roger Jiang el 29 de Oct. de 2018
Thanks for your answer. However, I don't know what are the meaning of "@(x)" and "fzero". Would you like to explain? Thanks alot
Torsten
Torsten el 29 de Oct. de 2018
help functionhandle
help fzero

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 29 de Oct. de 2018

1 voto

Use vpasolve with a third parameter that gives a starting point or search range.

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Oct. de 2018

Comentada:

el 29 de Oct. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by