Bonjour,
de cette façon peut-être:
declare(z,complex);
declare(x,real);
f(x,z):=abs(exp(z*x));
f(x,(1+%i)/2);
f(x,(1+%i)/sqrt(2));
Dominique
Le 24/03/2015 11:56, LOUISNARD Olivier a écrit :
Bonjour,
Je veux évaluer le module de l'exponentielle complexe exp(z*X), où z est
un complexe et X réel.
Le résultat est normalement exp( z_r X), où z_r partie réelle de z. Ca
marche parfaitement à ce niveau.
Par contre si je cherche à simplifier l'expression, cela fonctionne
correctement pour z = 1+i, mais pas pour
z= (1+i)/ sqrt(2). Pourquoi ?
Voici le code :
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);
Noter le "realpart" qui reste non évalué dans l'exponentielle expr2...
Merci.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Maxima-lang-fr mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-lang-fr
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Maxima-lang-fr mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-lang-fr