PDA

Click to See Complete Forum and Search --> : Scientific Calculator in JS *resolved*


Acidic
Oct 28th, 2003, 04:36 PM
I've been trying to make an advanced calculator in JS. but I got stuck when I realised that I don't know all the advanced function. I know they exist but not how to use them. So in JavaScript what are the keywords for:

Sin
Cos
Tan
Sin^-1
cos^-1
Tan^-1
square root
cube root
X root
log
ln
pi
e

mendhak
Oct 29th, 2003, 01:51 AM
Sin sin()
Cos cos()
Tan tan()
square root sqrt()
cube root pow(x,1/3)
X root pow(x,n)
log log()
e (Exponent?) exp()



Rest... :ehh:

Acidic
Oct 29th, 2003, 06:28 AM
thx alot, with e I meant the constant, worth 2.71 something
What the thing for Pi too?

Never mind found it myself.