Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is hard to explain in words, so I will show an image below of what I mean.

Let's say I enter an equation like in %i1, and then solve it to get the answer in %o2. How do I take the output from %o2 and use it to define I1 as it is shown on line %o2? On my HP50G calculator, I simply hit "define" and it gets stored.

So far the only way I found of doing it is to copy the equation, then replace the "=" with a ":". Is there some better way without disrupting the work-flow like this?

Since I'm a new user I'm not allowed to post images. Please see here: wxMaxima problem

share|cite|improve this question

The output of "solve" is a list containing the solutions, so you have to use "first" to extract the first element of that list. In your example, that first element is an expression of the form I1=Vin/((B+1)*ZL, and you want the right hand member of that expression; that can be obtained through the command "rhs". Lastly, you must use "define" for this task (defining a function). I think the sintaxis is now clear:



/* Here we define I1 as a function of the three variables, but you can hold any of them fixed, writing for example I1(Vin) if only the dependence on Vin is relevant */


/* A little check */


share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.