Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

Normal Size Small Size show me how

Normal Size Small Size show me how

# JScript Maths Obj

### Maths object properties and methods

Question | Answer |
---|---|

[Math properties]Returns the natural logarithm of 2 (approx. 0.693) | LN2 |

[Math properties]Returns the natural logarithm of 10 (approx. 2.302) | LN10 |

[Math properties]Returns the base-2 logarithm of E (approx. 1.442) | LOG2E |

[Math properties]Returns the base-10 logarithm of E (approx. 0.434) | LOG10E |

[Math properties]Returns PI (approx. 3.14) | PI |

[Math properties]Returns the square root of 1/2 (approx. 0.707) | SQRT1_2 |

[Math properties]Returns the square root of 2 (approx. 1.414) | SQRT2 |

[Math methods]Returns the absolute value of x | abs(x) |

[Math methods]Returns the arccosine of x | acos(x) |

[Math methods]Returns the arcsine of x | asin(x) |

[Math methods]Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians | atan(x) |

[Math methods]Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians | atan(x) |

[Math methods]Returns the arctangent of the quotient of its arguments | atan2(y,x) |

[Math methods]Returns x | ceil(x) |

[Math methods]Returns the cosine of x (x is in radians) | cos(x) |

[Math methods]Returns the value of Ex | exp(x) |

[Math methods]Returns x | floor(x) |

[Math methods]Returns the natural logarithm (base E) of x | log(x) |

[Math methods]Returns the number with the highest value | max(x,y,z,...,n) |

[Math methods]Returns the number with the lowest value | min(x,y,z,...,n) |

[Math methods]Returns the value of x to the power of y | pow(x,y) |

[Math methods]Returns a random number between 0 and 1 | random() |

[Math methods]Rounds x to the nearest integer | round(x) |

[Math methods]Returns the sine of x (x is in radians) | sin(x) |

[Math methods]Returns the square root of x | sqrt(x) |

[Math methods]Returns the tangent of an angle | tan(x) |

[Math properties]Returns Euler's number (approx. 2.718) | E |

Created by:
dcrypto