Topic 3 Flashcards

1
Q

Mathematical calculations can be done in C++ programming language using the mathematical functions which are included in math or ______

A

cmath library

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

These mathematical functions are defined to do complex mathematical calculations

A

cmath

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

It is used to calculate the power of the base raised to the power of exponent.

A

pow () function

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

It accepts two double values as arguments which are the base and exponents numbers and it returns a single double integer which is base to the power of exponent

A

Power or pow () function

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

it returns the sqare root of the double integer inside the parameter list

A

sqrt()

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

the method accept a double integer value as input find sqare root and reutrns a double integer as output

A

sqrt()

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

It is used to return the ______ value of the given double ineteger. It means the rounded down value. The function accepts a double value as input and returns double integer value calculated using ______

A

floor()

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

It returns the absolute value

A

abs()

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

The functions accepts an integer value and returns an integer value that has the same magnitude but positive sign

A

abs()

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

It can be used to find the highest value

A

max() function

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

It can be used find the lowest value

A

min () function

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

It returns to the smallest number

A

min ()

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

It returns to the largest number

A

max ()

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

It returns the positive difference between x and y. The positive difference is x - y if x is greater than y, and 0 otherwise

A

fdim()

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

It performs as a floating point multiply add. Has three parameters: The first two for the multiplication and the third for the added value

A

fma()

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

it returns the number, rounded as a double data type

17
Q

It round upwards

18
Q

It rounds downwards no matter what

19
Q

It cuts the decimal part off and leaves the whole number part intact (does not round it whatsoever)

20
Q

It returns the absolute value of its parameter.

21
Q

It takes two input parameters. The first is the base of the power and second is the exponent

22
Q

It is an abbreviation of square root, which returns the square root of the number given as a double

23
Q

It returns Euler’s number raised