Computer Science, asked by simrankerketta007, 2 months ago

convert the following mathematical expression into java operation V= a²+b²/c³​

Answers

Answered by SƬᏗᏒᏇᏗƦƦᎥᎧƦ
61

Correct question :

• Convert the following mathematical expression into java equivalent expression v = a²+b²/c³

Answer:

_____________________

Mathematical expression:-

v = a² + b² / c³

Equivalent Java expression :-

v = a*a + b*b / c*c*c

Or

v =Math.pow (a,2) + Math.pow(b,2) /Math.pow (c,3)

_____________________

▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃

Know more:

★ The Math.pow (x,y) method returns the value of the first argument raised to the power of second argument. The first number x is called the base number and the second argument y is called the exponent . Hence, the method Math.pow ( x, y ) returns the value of x^y.

• Syntax - Math.pow ( x,y )

• Argument type - double x , double y

• Return type - double

▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃

Answered by BrainlyProgrammer
15

Java Expression for:

  • \tt V=a²+b²/c³

Answer:-

  • \texttt{V= (a*a)+((b*b)/(c*c*c))}

\bold{\texttt{\:\:\:\:\:Or         }}

  •  \texttt {V= Math.pow(a,2)+((Math.pow(b,2)/(Math.pow(c3)))}

Always Remember:-

  • Always use brackets wisely in Java Expression
  • Math.pow() returns a number raised to power other number
  • Math.pow() returns double data type value.
Similar questions