Plotting programs, Examples, Plotting programs -3 – HP 49g Graphing Calculator User Manual

Page 96

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

The following diagram is of the same plot as in the previous illustration,
but the axes now meet where x =1 and y =1.

Plotting programs

You can plot a program if it takes nothing from the stack, uses the
independent variable in the program, and returns exactly one mrtagged
number to the stack.

Examples

® Real result. Equivalent to the expressions/(,x) (function plots) and

'r(6) (polar plots). For example, the program:

« IF ' X < 0 ' THEN ' 3 * X ' ' 3 - 4 5 X " ' 2 + 3 5 0 ' ELSE 1 0 0 0 E N D »

plots/(x) = 3,x^-45x^+350 if x<0 and/(x) = 1000 if ,x>0.

Store the program in EQ, select autoscaling, and draw the plot.

® Complex result. Equivalent to (x(i), i/(0) (parametric plots). For

example, the program:

« ' t ^ 2 - 2 ' ^ N U M ' t " 3 - 2 t + l ' ->NUM R^C »

plots the parametric equations x = t^-2 and x =

Store the program in EQ, make f the independent variable, select

autoscaling, and draw the plot.

Advanced plotting options

Page 10-3

Advertising