Math, asked by shalukanwar, 5 months ago

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

Answered by ejazm1368gmailcom
87

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

Answered by isha00333
0

Given: \[f\left( P \right) = 9{P^3} + 3P + 12\].

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.

\[\begin{array}{l}f\left( P \right) = 9{P^3} + 3P + 12\\ \Rightarrow f\left( P \right) = P\left( {9{P^2} + 3} \right) + 12\\ \Rightarrow f\left( P \right) = P\left( {9\left( P \right)\left( P \right) + 3} \right) + 12\end{array}\]

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=3

Count the number of '+' signs which will give the number of addition operations.

Number of '+' signs=2

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=3+2

                                             =5

Therefore,  the minimum number of arithmetic operations required to evaluate the given expression,\[f\left( P \right) = 9{P^3} + 3P + 12\]  is 5.

Similar questions