MATLAB中 log函数指以自然对数e为底的对数运算,而exp顾名思义就是指数运算,现在在MATALB中做符号运算,设x为一符号变量,首先测试exp(log(x)),完全OK,会得到x,但是奇怪的是输入log(exp(x))后得到的仍然是log(exp(x)),而不是x,有点令人费解,有人知道是咋回事么。这难道是因为MATLAB本来就是这么样定义的?

 採用された回答

华纳公司客服【微8785092】
华纳公司客服【微8785092】 2023 年 5 月 19 日

0 投票

syms h t real
就能把h和t定义成实数域的符号变量了

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!