[newbie] how to expand function to original variables



Since you defined p and sigma to be functions, I think you want something like (append arguments to p and sigma)

(p(tau11,tau22):=tau11*tau22,
sigma(tau11,tau12,tau22):=tau11+tau12+tau22,
A:sqrt(p(tau11,tau22)^2+2*p(tau11,tau22)*sigma(tau11,tau12,tau22))-p(tau11,tau22),
hjmax:sqrt((1+A/p(tau11,tau22))/((1-A/sigma(tau11,tau12,tau22)^2)^2+A/p(tau11,tau22))));

Or maybe you wanted p and sigma to be expressions, not functions  (thus p : tau11 * tau22, sigma : =tau11+tau12+tau22)?

--Barton

________________________________________
From: maxima-bounces at math.utexas.edu [maxima-bounces at math.utexas.edu] on behalf of Hugo Coolens [coolens at kahosl.be]
Sent: Monday, February 18, 2013 06:14
To: maxima at math.utexas.edu
Subject: [newbie] how to expand function to original variables

I have the following code:
p(tau11,tau22):=tau11*tau22;
sigma(tau11,tau12,tau22):=tau11+tau12+tau22;
A:sqrt(p^2+2*p*sigma)-p;
hjmax:sqrt((1+A/p)/((1-A/sigma^2)^2+A/p));

I now would like to see hjmax written again as a function of tau11, tau12,
tau22.
Can anyone here point me to which command to use for that purpose?

thanks in advance
hugo

_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima