Copied from http://www.javascripter.net/faq/mathfunc.htm

Math.abs(a)     // the absolute value of a
Math.acos(a)    // arc cosine of a
Math.asin(a)    // arc sine of a
Math.atan(a)    // arc tangent of a
Math.atan2(a,b) // arc tangent of a/b
Math.ceil(a)    // integer closest to a and not less than a
Math.cos(a)     // cosine of a
Math.exp(a)     // exponent of a
Math.floor(a)   // integer closest to and not greater than a
Math.log(a)     // log of a base e
Math.max(a,b)   // the maximum of a and b
Math.min(a,b)   // the minimum of a and b
Math.pow(a,b)   // a to the power b
Math.random()   // pseudorandom number in the range 0 to 1
Math.round(a)   // integer closest to a 
Math.sin(a)     // sine of a
Math.sqrt(a)    // square root of a
Math.tan(a)     // tangent of a

Open the attached file and play the animation...
Open "Properties->Script tab" to seen the functions.
RS v5.1 file.

Hope this was helpy,
Matthias

----- Original Message ----- 
From: "Alasdair" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, December 25, 2007 10:14 PM
Subject: Re: Javascript


> Hi Timo
> in my javascript book Math.random() is just random() so Ive got to guess 
> which category each command may be referred to under realsoft3d
> Alasdair
> 
> ----- Original Message ----- 
> From: "Timo Mikkolainen" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, December 25, 2007 2:15 PM
> Subject: Re: Javascript
> 
> 
> > Basic stuff like Math.random() is the same as in your browser's JS, so
> > you can take a look at general JS tutorials for that.
> >
> > On 25/12/2007, Alasdair <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi everybody
> >> I know you are all busy getting into v6 (havent learnt v5 enough & cant
> >> afford it yet) but can anybody help me please?
> >> Alasdair
> >>
> >>
> >> ----- Original Message -----
> >> From: Alasdair
> >> To: [email protected]
> >> Sent: Monday, December 24, 2007 5:19 PM
> >> Subject: Javascript
> >>
> >>
> >> where can I find a list of the commands such as Math.random() ?
> >> Alasdair
> >>
> >>
> >>  ________________________________
> >>
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.516 / Virus Database: 269.17.7/1194 - Release Date: 
> >> 23/12/2007
> >> 17:27
> >>
> >>
> >>
> >
> >
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.17.8/1195 - Release Date: 
> > 24/12/2007 11:19
> >
> > 
> 

Attachment: math_functions.r3d
Description: Binary data

Reply via email to