Find the minimum number of arithmetic operations required to evaluate below expression
f(P) = 8P^3 + 3P +12
Note - for a given value of P using only one temporary variable.
"Enter your answer ONLY as a NUMERAL in the box."
Answers
Answer:
P=1 given value
F (p)=8P^3+3p+12
F (1)=8×1+3×1+12
F (1)=8+3+12
F (1)=24
Step-by-step explanation:
I hope you understand
Given: .
To find: the minimum number of arithmetic operations required to evaluate the given expression.
Solution:
Know that, the minimum number of arithmetic operations required to evaluate below expression.
Find the minimum number of arithmetic operations required to evaluate the given expression.
Count the number of brackets which will give the number of multiplication operations.
Number of brackets
Count the number of '+' signs which will give the number of addition operations.
Number of '+' signs
Add both the number of multiplication operations and the number of addition operations to find the minimum number of total operations.
Total number of operations
Therefore, the minimum number of arithmetic operations required to evaluate the given expression, is 5.