home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
SCIENCE
/
MATHPLOT.ZIP
/
MATHPLOT.FUN
< prev
next >
Wrap
Text File
|
1991-02-23
|
2KB
|
141 lines
CLEAR
DISPLAY
DISPLAY
DISPLAY
DISPLAY
DISPLAY MATHPLOT example functions.
DISPLAY Press Enter to move on to next function.
DISPLAY
pause 30
RESET
DISPLAY Damped oscillations
TITLE Damped oscillations
Y = EXP(-.2*X)*COS(X)
RANGE 0,6*PI
PLOT 30
RESET
DISPLAY Second and third order Butterworth filters
TITLE Second and third order Butterworth filters
Y1=1/SQRT(1+(X/2000)^4)
Y2=1/SQRT(1+(X/2000)^6)
RANGE 0,8000
NUMPOINTS 100
LABEL ON
GRID ON
PLOT 30
RESET
DISPLAY Fourier series approximation of square wave
TITLE Fourier series approximation of square wave
Y1 = SIN(X) + SIN(3*X)/3 + SIN(5*X)/5 + SIN(7*X)/7
Y2 = PULSE(0,X,PI) - PULSE(PI,X,2*PI)
RANGE .001,2*PI+.001
NUM 200
LABELS ON
GRID ON
PLOT 30
RESET
DISPLAY Cubic equation
TITLE Cubic equation: Y = 2*X^3 + 50*X^2 + 100*X + 5000
CTITLE 7
Y=2*X^3+50*X^2+100*X+5000
RANGE -30,18
NUMPOINTS 100
LABEL ON
GRID ON
PLOT 30
RESET
DISPLAY Hyperbolic function: X * Y = 5
TITLE Hyperbolic function: X * Y = 5
Y1=5/T
X1=T
CF1 2
Y2=-5/T
X2=-T
CF2 2
RANGE 0.5,10
COMMONSCALE ON
PLOT 30
RESET
DISPLAY Hypocycloid of four cusps
TITLE Hypocycloid of four cusps (Astroid)
CTITLE 4
y=SIN(T)^3
x=COS(T)^3
CF1 2
RANGE 0,6.28319
NUMPOINTS 100
CAXES 1
COMMONSCALE ON
PLOT 30
RESET
DISPLAY Reciprocal of Gamma function
TITLE Reciprocal of Gamma function
CTITLE 7
y=GAMMAI(X)
CF1 2
RANGE -4,6
NUMPOINTS 100
LABEL ON
CAXES 3
GRID ON
CGRID 8
COMMONSCALE OFF
ORIGIN OFF
PLOT 30
RESET
DISPLAY Normal probability distribution function
TITLE Normal probability distribution function
Y=NORMAL(X)
RANGE -4,4
NUMPOINTS 150
PLOT 30
RESET
DISPLAY Now, a little "art"
pause 3
R=2*SIN(2*A)
CF1 3
RANGE 0,2000
NUMPOINTS 500
AXES OFF
PLOT 30
RESET
y=SIN(T)^3
x=COS(T)^3
CF1 2
RANGE 0,4000
NUMPOINTS 500
AXES OFF
GRID OFF
COMMONSCALE ON
PLOT 30
RESET
y=5*SIN(T)-SIN(5*T)
x=5*COS(T)-COS(5*T)
CF1 3
RANGE 0,6000
NUMPOINTS 400
AXES OFF
COMMONSCALE ON
PLOT 30
DISPLAY
DISPLAY
DISPLAY End of example plots.
DISPLAY Type or edit MATHPLOT.FUN to see the function descriptions.
DISPLAY The file MATHPLOT.DOC contains a tutorial and full instructions.
DISPLAY
DISPLAY
EXIT