matlab中定义变​量不满足三角函数之间​的关系?。

21 ビュー (過去 30 日間)
netitan senalar
netitan senalar 2023 年 3 月 29 日
回答済み: koboner 2023 年 3 月 29 日
例如我输入如下:
clear all
syms a
cos(a)^2 + sin(a)^2
得到的cos(a)^2 + sin(a)^2结果仍然是它本身,不是1.
这个该怎么解决呢

採用された回答

koboner
koboner 2023 年 3 月 29 日
syms g real
a=[sin(g) ,0,cos(g)];
a_unit =[ sin(g)/(abs(cos(g))^2 + abs(sin(g))^2)^(1/2), 0, cos(g)/(abs(cos(g))^2 + abs(sin(g))^2)^(1/2)];
simplify(a_unit)

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by