Get cosine real values

8 visualizaciones (últimos 30 días)
Robert
Robert el 10 de Mzo. de 2021
Respondida: Walter Roberson el 10 de Mzo. de 2021
I want to get the real values of cosine here in this code-
syms q
T = cosd(q);
T04 = subs(T,{q},{10})
Output:
T04 =
cos(pi/18)
How can I get real value which is 0.9848 with this script and with the same code pattern?

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Mzo. de 2021
vpa(T04) or double(T04)

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by