Topic 3 Flashcards
Mathematical calculations can be done in C++ programming language using the mathematical functions which are included in math or ______
cmath library
These mathematical functions are defined to do complex mathematical calculations
cmath
It is used to calculate the power of the base raised to the power of exponent.
pow () function
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
Power or pow () function
it returns the sqare root of the double integer inside the parameter list
sqrt()
the method accept a double integer value as input find sqare root and reutrns a double integer as output
sqrt()
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 ______
floor()
It returns the absolute value
abs()
The functions accepts an integer value and returns an integer value that has the same magnitude but positive sign
abs()
It can be used to find the highest value
max() function
It can be used find the lowest value
min () function
It returns to the smallest number
min ()
It returns to the largest number
max ()
It returns the positive difference between x and y. The positive difference is x - y if x is greater than y, and 0 otherwise
fdim()
It performs as a floating point multiply add. Has three parameters: The first two for the multiplication and the third for the added value
fma()
it returns the number, rounded as a double data type
round()
It round upwards
ceil()
It rounds downwards no matter what
floor ()
It cuts the decimal part off and leaves the whole number part intact (does not round it whatsoever)
trunc ()
It returns the absolute value of its parameter.
abs()
It takes two input parameters. The first is the base of the power and second is the exponent
pow()
It is an abbreviation of square root, which returns the square root of the number given as a double
sqrt ()
It returns Euler’s number raised
exp()