home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d9xx
/
d916
/
mathplot.lha
/
MathPlot
/
Macros
/
Schar2.mapl
< prev
next >
Wrap
Text File
|
1993-10-04
|
826b
|
43 lines
/* Kurvenscharen */
options results
requestnumber 'prompt "Nummer der Funktion"'
nr = result-1
if(RC ~= 5) then do
if nr < 1 then nr = 0
if nr > 10 then nr = 9
requeststring 'prompt "Name der Konstanten"'
const = result
if(RC ~= 5) then do
requeststring 'prompt "Startwert"'
start = result
if(RC ~= 5) then do
requeststring 'prompt "Endwert"'
ende = result
if(RC ~= 5) then do
requestnumber 'prompt "Anzahl Schritte" default 10'
schritte = result
if(RC ~= 5) then do
if schritte <= 0 then schritte = 1
if schritte ~= 1 then add = (ende - start)/(schritte-1)
wert = start
do i=1 TO schritte
setconst 'name='const' definition='wert
plot nr normal
wert = wert + add
end
exit(0)
end
end
end
end
end
mp_showmessage "Fehler~! OK"