HP Forums
(50g) Quick Function Plotting Interface - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (50g) Quick Function Plotting Interface (/thread-3160.html)



(50g) Quick Function Plotting Interface - Eddie W. Shore - 02-21-2015 02:39 PM

This program will allow you to plot one function using a simplified form instead of the 50g interface.

Code:
<< ‘X’ PURGE
“Quick Function Plot”  
{ { “y(x)=” “Enter y(x)” }
{ “xmin=” “x minimum” }
{ “xmax=” “x maximum” }
{ “ymin=” “y minimum” }
{ “ymax=” “y maximum” } }
{ 2 2 } { } { } INFORM 
IF 0 == THEN KILL END
EVAL YRNG XRNG STEQ ‘X’ INDEP FUNCTION (0,0) AXES
ERASE DRAX DRAW PICT {#0d #0d} “Y=” EQ →STR + 1 
→GROB GOR PICTURE >>

You can use RPN to build expressions. However, everything for the window variables must evaluate to numbers. For example, if you want to set xmax to 2π, use 2 π * →NUM [ENTER]