Dealing with functions - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Dealing with functions (/thread-587.html) |
Dealing with functions - Mickpc - 02-01-2014 11:00 AM 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 RE: Dealing with functions - Helge Gabert - 02-01-2014 04:36 PM While in the SOLVE apps, hit Num and solve for the variable you want to plot as the independent variable (that field will stay highlighted - - this sets the independent variable). The dependent variable will be E1, E2, ... . Then hit plot and it should work. You can plot any variable that you solve for by going back to the Solve Numeric view and highlighting a different variable(just make sure that before plotting, you solve for it again; you may have to adjust the scale, of course, if your variables have different magnitudes). You can also trace your function with the cursor keys. I hope this covers what you were asking. RE: Dealing with functions - Dominik Holenstein - 02-01-2014 05:45 PM (02-01-2014 11:00 AM)Mickpc Wrote: 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? Hi Mick, Here is a simple example of how you can use an equation within a program and either plot it or solve it: Code:
This is just a standalone program. It is much more elegant to implement this code within the created App and to define specific views to choose from. Dominik RE: Dealing with functions - Mickpc - 02-02-2014 12:08 AM (02-01-2014 04:36 PM)Helge Gabert Wrote: While in the SOLVE apps, hit Num and solve for the variable you want to plot as the independent variable (that field will stay highlighted - - this sets the independent variable). The dependent variable will be E1, E2, ... . Then hit plot and it should work. That is what I needed, thank you everyone. Kind Regards Mick C HP Prime a gentle introduction |