Why does solve ignore if a variable is assumed real or positive?
Ältere Kommentare anzeigen
When I use 'solve' on a complicated equation with variables assumed to be real or positive, these assumptions are sometimes ignored.
syms a positive;
solve('5*ln(a) - 32*exp(a/16) + 8*a^2 + 4*a^4=0','a')
ans = 0.22609034746836648974751899999113*i - 1.3900380484673922332261785846175
Antworten (1)
Prabhakar
am 18 Jan. 2011
2 Kommentare
Walter Roberson
am 20 Jan. 2011
Interestingly, Maple's solve() is not able to find a symbolic solution for the version with abs().
Christopher Creutzig
am 24 Jan. 2011
Note that with the assumption that a be positive, your abs(a) is automatically simplified to a and your first command returns an incorrect solution (try subs('5*ln(a) ... 4*a^4', 'a', ans), I get -1.63.)
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!