Symbolic Math Toolbox VS MuPAD: example in advance of the first?
조회 수: 2 (최근 30일)
이전 댓글 표시
MATLAB
>> simplify(exp(log10(x)))
ans =
x^(1/log(10))
MuPAD
simplify(exp(log(10,x)), ln)
No effect. How to force MuPAD to simplify truely? I used consider MATLAB Simb.Tbx as a reduced version of MuPAD? That is -- MATLAB calls the MuPAD functions...
댓글 수: 0
채택된 답변
Walter Roberson
2011년 6월 7일
Mathematically, log(b, b^y) = y holds true for any real y. This simplification is implemented for the following cases: i) b is a symbolic (indexed) identifier and y is of type Type::Real, ii) b is numerical and y is integer or rational.
and
Note that arithmetical rules such as log(b, x*y) = log(b, x) + log(b, y) are not valid throughout the complex plane. Use properties to mark identifiers as real and apply functions such as expand or simplify to manipulate expressions involving log. Cf. example 4.
So you could possibly use
simplify(exp(log(10,x))) assuming x::real
댓글 수: 2
추가 답변 (2개)
Andrei Bobrov
2011년 6월 6일
in MuPAD
expand(subs(exp(log(10,x)),log(10,x)=ln(x)/ln(10)));
EDIT
rewrite(exp(log(10,x)),ln)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!