how to solve equation in syms
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
bencsl
el 7 de Abr. de 2019
i know the question is kinda stupid but very much appreciated if somebody could helps
syms x;
cos(10+x-x)
the ans keep showing "cos(10)" but i want it to be solved like -0.839071529076452
0 comentarios
Respuesta aceptada
madhan ravi
el 7 de Abr. de 2019
syms x pi
cos(pi+x-x)
3 comentarios
madhan ravi
el 7 de Abr. de 2019
Editada: madhan ravi
el 7 de Abr. de 2019
syms x pi
vpa(cos(10+x-x)) % will match the result in your edited question which was after the answer was given
double(cos(10+pi-pi)) % use double() to convert the result into decimal which of type double because syms result in the class of type sym
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!