home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
LN.(X)
< prev
next >
Wrap
Text File
|
1993-11-14
|
135b
|
9 lines
# ln(x) is natural log
ln(0) := -inf
ln(1) := 0
ln(e) := 1
ln(inf) := inf
ln(x_^n_) := n*ln(x)
ln(x_) := if(x<0, ln(-x)+pi*i)