MATLAB符号运算​不能化简(即log(​exp(x))不能继​续化简)。

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

 Akzeptierte Antwort

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu 数学 finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!