Ploting x=constant - 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: Ploting x=constant (/thread-18373.html) |
Ploting x=constant - John P - 05-15-2022 07:23 PM Hello, How do I plot on HP Prime for example x=1? Thank you. RE: Ploting x=constant - Eddie W. Shore - 05-15-2022 07:38 PM This is probably the easiest way to do it: App: Advanced Graphing Symb View: V1: X = 1 RE: Ploting x=constant - John P - 05-15-2022 07:44 PM (05-15-2022 07:38 PM)Eddie W. Shore Wrote: This is probably the easiest way to do it: Thanks. Do you know how to do it in Function Application? RE: Ploting x=constant - Eddie W. Shore - 05-15-2022 07:50 PM Technically x=1 is not a function, hence, it won't fit the y(x) definition. No, and I don't think there is a vertical draw function to draw x=1 in function. We have LINE, however, that is between two points. Another way to draw is to use the Parametric app: X1(T) = 1 Y1(T) = T set T for any interval you like (but it is finite) RE: Ploting x=constant - matalog - 05-15-2022 07:52 PM I was trying to do this the other day too, basically plot a vertical line in Function graphing app. I'm not sure you can, as it doesn't seem to allow one graph to have 2 points at the same x value, you are plotting F(x) which is basically Y=, is what I concluded. I hope I am wrong, and there is a way to do it. RE: Ploting x=constant - John P - 05-15-2022 07:53 PM (05-15-2022 07:50 PM)Eddie W. Shore Wrote: Technically x=1 is not a function, hence, it won't fit the y(x) definition. Thank you very much. RE: Ploting x=constant - John P - 05-15-2022 07:57 PM (05-15-2022 07:52 PM)matalog Wrote: I was trying to do this the other day too, basically plot a vertical line in Function graphing app. Hello, I did not use HP Prime for some time. I was using Pocket CAS on my iPhone. In Pocket Ca you just enter for example x=1, and it is done. RE: Ploting x=constant - Didier Lachieze - 05-15-2022 08:59 PM (05-15-2022 07:52 PM)matalog Wrote: I was trying to do this the other day too, basically plot a vertical line in Function graphing app. You can get a good approximation with something like F1(X)=1E20*(X-1) which will plot a quasi-vertical line at X=1 in the Function app. RE: Ploting x=constant - John P - 05-16-2022 01:00 AM Hello, Just suggestion for plotting constants on HP Prime in Function Application. I do not know if that is possible, but why not introduce in function definition the “WHERE” option, eg. F1(X)=X|(X=const) and plot the vertical line at X=const. Just thinking. RE: Ploting x=constant - jte - 05-19-2022 11:52 PM (05-16-2022 01:00 AM)John P Wrote: ⋮ “WHERE” can currently be used in the Function app; F1(X)=(K+COS(K))|(K=2), for example, will plot as F1(X)=2+COS(2). (That said, how the Function app deals with “|(X=…)” in definitions of functions to be plotted should be adjusted.) Being able to switch the independent variable for some of the functions could allow one to plot, e.g., F1(Y)=const, but would also require changes in other places (such as the Numeric view, but also the Fcn choices in Plot views). This could become a bit of a can of worms… (And, from a certain viewpoint, the ”X” is a placeholder in F1(X) — it is, simply, the name of the variable to be used in the definition, and the Plot view works with functions from R to R [the name ”X” is bound within the definition and not visible from outside the definition].) Perhaps some tick customization options could get you what you want: being able to add specific X values to a list (in Plot Setup) that would then be dashed lines in plot views. Comments? RE: Ploting x=constant - jte - 05-20-2022 12:00 AM (05-15-2022 08:59 PM)Didier Lachieze Wrote:(05-15-2022 07:52 PM)matalog Wrote: I was trying to do this the other day too, basically plot a vertical line in Function graphing app. One approach along these lines would be to add a continuous step function (like Heaviside, but known to be continuous and with the transition from 0 to 1 made in the gap between adjacent floating-point numbers). Such a function could then be scaled and shifted to produce other sorts of (continuous) steps. RE: Ploting x=constant - jte - 05-20-2022 12:06 AM (05-15-2022 07:52 PM)matalog Wrote: I was trying to do this the other day too, basically plot a vertical line in Function graphing app. Options that come to mind for me follow the paths set out nicely by others in this thread (and I am the one who implemented the Function app…). RE: Ploting x=constant - John P - 05-20-2022 03:31 AM (05-19-2022 11:52 PM)jte Wrote:Hello,(05-16-2022 01:00 AM)John P Wrote: ⋮ I've never tried "WHER" in Function Application. It is nice to know. Thank you. John P |