From: LOUISNARD O. <olo...@gm...> - 2015-03-26 09:19:49
|
Le 24/03/15 15:14, Stavros Macrakis (Σταῦρος Μακράκης) a écrit : > Dès que le realpart est en nounform, Maxima ne va pas le réévaluer > sans commande explicite, du genre: > > ev(expr2,realpart) > > > > > On Tue, Mar 24, 2015 at 6:56 AM, LOUISNARD Olivier > <olo...@gm... <mailto:olo...@gm...>> wrote: > > declare(z,complex); declare(X,real); > expr : abs( A0 * exp(z*X) ); > expr1 : subst( (1+%i)/2, z, expr); > expr2 : subst( (1+%i)/sqrt(2), z, expr); > > > Merci Stavros et Dominique. Cela fonctionne très bien et résoud mon problème. Cela dit je ne comprends toujours pas pourquoi il faut réévaluer un realpart... je pensais que sqrt(2) n'avait pas de problème de détermination. Le plus curieux c'est que si on fait le calcul directement sans passer par subst : abs(A0 * exp((1+%i)/sqrt(2)*X)); ça fonctionne parfaitement. Le mystère reste entier pour moi... mais un grand merci pour la solution en tout cas. Cordialement, |