Question
Top Student
Posts: 8
Member Since: ‎11-26-2013
Message 1 of 4 (225 Views)

# Dealing with functions

I am trying to figure out how to plot a function that is held a solver Variable. If I store the said equation in, say, E1 I can then solve it. But when I want to plot the same function it needs to be in a different format for plotting.

What I am trying to do is store the equation in a program and then solve it and plot it, as well. Is there any trick to this?

For the solver I can use any combinations of variables I want, but when It comes to plotting, you cannot seem to set the dependent and independt variables for the plot.

Oh and as a random question is anyone working on an equation browser?

Mick C

HP_Prime_an_introduction

Posts: 252
Member Since: ‎02-04-2014
Message 2 of 4 (205 Views)

# Re: Dealing with functions

Here's one possible way of doing it: STARTVIEW(1) will graph both sides of the currently selected equation in the Solver (assuming that the Solver is the current app, of course).  Make sure that only one equation is selected.

However, plotting from the solver only makes sense after the solver has solved the equation, so I suggest doing a STARTVIEW(2) first, to force the Numeric View to appear, which is where solving is done.  Whatever variable is left selected in the Numeric View will be the independent variable in the graph.

-Joe-

-Joe-
Top Student
Posts: 8
Member Since: ‎11-26-2013
Message 3 of 4 (180 Views)

# Re: Dealing with functions

Thank you for the Reply Joe. The problem is with the diffrent formats of the equations in E1 and V1 (Solver and Advanced Graphing.) E1 handles the variables fine, but V1 wants the variables in terms of x and y. So I either have to rewrite the formula or deal with reassinging the variables somehow.

Here is what I am trying to do, I have another program that solves the formula for I and Vd.

Shockley Plot

EXPORT Is,Vd,Vt,n;

EXPORT SHOCKLEYP()

BEGIN

'I=10ᴇ12*(e^(Vd/(1*26ᴇ3))-1)'V1;

STARTVIEW(1);

END;

Kind Regards

Mick C

HP Prime, a Gentle introduction.

Highlighted
Top Student
Posts: 8
Member Since: ‎11-26-2013
Message 4 of 4 (176 Views)

# Re: Dealing with functions

I have a solution, solve for the independent variable first in the solver menu.

Thank you

Mick C

HP Prime, a Gentle introduction.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation