Math API Flashcards

1
Q

Math.ceil(x)

A

Returns the smallest integer greater than or equal to a number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Returns the largest integer less than or equal to a number

A

Math.floor(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Math.cos(x)

A

Returns the cosine of a number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Math.exp(x)

A

Returns Ex, where x is the argument, and E is Euler’s constant, the base of the natural logarithms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Returns the value of a number rounded to the nearest integer

A

Math.round(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Math.sqrt(x)

A

Returns the square root (x\sqrt{x}) of a number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Returns the absolute value of a number

A

Math.abs(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Returns the tangent of a number

A

Math.tan(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Returns the smallest of zero or more numbers

A

Math.min([value1[,value2, …]])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns the sine of a number

A

Math.sin(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns Ex, where x is the argument, and E is Euler’s constant, the base of the natural logarithms

A

Math.exp(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Math.random()

A

Returns a floating-point, pseudo-random number in the range [0, 1) that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Math.max([value1[,value2, …]])

A

Returns the largest of zero or more numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Math.floor(x)

A

Returns the largest integer less than or equal to a number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Math.pow(base, exponent)

A

Returns the base to the exponent Power, that is, baseexponent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Returns the smallest integer greater than or equal to a number

A

Math.ceil(x)

16
Q

Math.sin(x)

A

Returns the sine of a number

18
Q

Returns the largest of zero or more numbers

A

Math.max([value1[,value2, …]])

19
Q

Returns the square root (x\sqrt{x}) of a number

A

Math.sqrt(x)

20
Q

Math.abs(x)

A

Returns the absolute value of a number

21
Q

Math.tan(x)

A

Returns the tangent of a number

21
Q

Returns a floating-point, pseudo-random number in the range [0, 1) that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range

A

Math.random()

23
Q

Math.min([value1[,value2, …]])

A

Returns the smallest of zero or more numbers

24
Q

Returns the cosine of a number

A

Math.cos(x)

25
Q

Math.round(x)

A

Returns the value of a number rounded to the nearest integer

26
Q

Returns the natural logarithm (base E) of a number

A

Math.log(x)

27
Q

Returns the base to the exponent Power, that is, baseexponent

A

Math.pow(base, exponent)

28
Q

Math.log(x)

A

Returns the natural logarithm (base E) of a number