Get cosine real values

8 ビュー (過去 30 日間)
Robert
Robert 2021 年 3 月 10 日
回答済み: Walter Roberson 2021 年 3 月 10 日
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?

採用された回答

Walter Roberson
Walter Roberson 2021 年 3 月 10 日
vpa(T04) or double(T04)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by