= #JxnPortable\docs\applet_examples\FunctionPlotter.jxn

! example 1: plot( x, y(x) )
!            with y(x) = x^3 + 2 * x^2 - 48 * x
x ! is predefined as:
 = {-10.0, -9.95, ... 10.0}[401] (JxnRealArrayAlgebra)
pf1 = plot( x, x^3 + 2 x^2 - 48 x ).setXYLabels( "x", "y" )
pf1.setPlotFrameTitle( "example 1: y = x^3 + 2 x^2 - 48 x" )

! example 2a: plot( t, x(t), y(t) )  ! 2 curves
! example 2b: plot( x(t), y(t) )  ! parametric representation 
!             with x(t) = exp( -4 * t ) * cos( 10 * PI * t ); y(t) = ...
t ! is predefined as:
 = {0.0, 0.002, ... 1.0}[501] (JxnRealArrayAlgebra)
xt = exp -4 t * cos 10 PI t
yt = exp -4 t * sin 10 PI t
plot( t,  xt, yt ).setPlotFrameTitle( "example 2a: plot( t, xt, yt )"  ).setXYLabels( "t", "x(t), y(t)" )
plot( xt, yt, 1. ).setPlotFrameTitle( "example 2b: plot( xt, yt, 1. )" ).setXYLabels( "x(t)", "y(t)" )