# Maxima

• Mar 13th 2010, 08:19 PM
kungal
Maxima
Hi all,
Does anyone know haw I can assign names to the equations as they are solves in Maxima?

I am solving some simultaneous equations using
solve([f(x),g(y),h(z)],[x,y,z])
and I get three equations as output as I am not solving for actual values of x,y, and x, I'm looking for algebraic solutions. What I want to do is label each of the output equations as i,j and k.
Any help?
• Mar 13th 2010, 10:50 PM
CaptainBlack
Quote:

Originally Posted by kungal
Hi all,
Does anyone know haw I can assign names to the equations as they are solves in Maxima?

I am solving some simultaneous equations using
solve([f(x),g(y),h(z)],[x,y,z])
and I get three equations as output as I am not solving for actual values of x,y, and x, I'm looking for algebraic solutions. What I want to do is label each of the output equations as i,j and k.
Any help?

See attachment:

http://www.mathhelpforum.com/math-he...8&d=1268549360
• Mar 13th 2010, 11:20 PM
kungal
Yes, I know how to do that.
But this time I am not looking for actual numbers as output, I'm solving algebraic equations to get an equation for the solutions to the simultaneous equations.
The result of the solve formula is three equations. I want to know how to label these equations.

I've tried

[a,b,c]: solve([f(x),g(y),h(z)],[x,y,z]);

but it doesn't work.
• Mar 13th 2010, 11:58 PM
CaptainBlack
Quote:

Originally Posted by kungal
yes, i know how to do that.
But this time i am not looking for actual numbers as output, i'm solving algebraic equations to get an equation for the solutions to the simultaneous equations.
The result of the solve formula is three equations. I want to know how to label these equations.

I've tried

[a,b,c]: Solve([f(x),g(y),h(z)],[x,y,z]);

but it doesn't work.

That is verging on the rude but try something based on the following:

Attachment 15889
• Mar 14th 2010, 04:28 AM
kungal
Sorry, about that. No offense intended.
Below is a simplified version of the problem I am dealing with

Code:

``` (%i1)  X: a*b+c*d=e; (%o1)                            c d + a b = e (%i2)  Y:g*b+h*d=f; (%o2)                            d h + b g = f (%i3)  solve([X,Y],[b,d]);                               e h - c f    e g - a f (%o3)                [[b = - ---------, d = ---------]]                               c g - a h    c g - a h```
In my real problem I more equations and they are a lot longer. What I want to do is name the equations that are produced as output (the equations for b and d above) so that they can be recalled later.
Thanks for your help
• Mar 14th 2010, 06:13 AM
CaptainBlack
Quote:

Originally Posted by kungal
Sorry, about that. No offense intended.
Below is a simplified version of the problem I am dealing with

Code:

``` (%i1)  X: a*b+c*d=e; (%o1)                            c d + a b = e (%i2)  Y:g*b+h*d=f; (%o2)                            d h + b g = f (%i3)  solve([X,Y],[b,d]);                               e h - c f    e g - a f (%o3)                [[b = - ---------, d = ---------]]                               c g - a h    c g - a h```

In my real problem I more equations and they are a lot longer. What I want to do is name the equations that are produced as output (the equations for b and d above) so that they can be recalled later.
Thanks for your help

Is this what you are looking for:

http://www.mathhelpforum.com/math-he...axima-gash.jpg

You can use b and d instead of sol1 and sol2 if you want in the last two entries

CB
• Mar 14th 2010, 06:54 AM
kungal
That's got it. Thanks a lot.