home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
extensions
/
jd
/
procs
/
_rootpower.amos
/
_rootpower.amosSourceCode
Wrap
AMOS Source Code
|
1994-02-02
|
332b
|
11 lines
Z#=-9.0 : P#=3.0
Print P#;"te Wurzel aus";Z#;" =";
ROOT[Z#,P#] : Print Param#
Print Param#;" hoch";P#;" =";
POWER[Param#,P#] : Print Param#
Procedure ROOT[A#,B#]
B#=1/B# : POWER[A#,B#] : ERG#=Param#
End Proc[ERG#]
Procedure POWER[A#,B#]
B=B# : A=A# : ERG#=A#^B# : If Sgn(A)=-1 Then If B/2*2<>B Then ERG#=ERG#*-1
End Proc[ERG#]