Computer Science, asked by riya30742229, 7 months ago

write Java equivalent expression for a^2 + b^2/c^2​

Answers

Answered by mohsinafaridi
0

java equivalent expression is a*a+b*b/c*c

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

Answer:

  • math.pow (a , 2) + math.pow (b , 2) / math.pow (c , 2)

Explaination:

  • In the first condition of a² we would be using math.pow method because the first argument that is a is raised to the second argument that is 2.
  • In the second condition of (b²) we would be using math.pow method because the first argument that is b is raised to the second argument that is 2.
  • And in the third condition of (c²) we would be using math.pow method because the first argument that is c is raised to the second argument that is 2.

Additional Information :

  • Method is a named block of a códe in a class. It is executed within a defined set of instructions.
  • Methods and variables of math class are defined as static members.
  • Java.lang package contains classes and interfaces which are fundamental to Java programming language.
  • The math class of java.lang package contains generic mathematical functions including some geometric and trigonometric function.
  • Math.cbrt returns cube root of a double value.
  • Math.ceil returns smallest integer which is greater or equal to the argument.
  • Math.abs returns us the absolute value of a given argument.
  • Math.pow it returns us the value of a first given argument raised to the power of the given second argument.
  • Double datatype is used if a output comes in decimal.

More similar questions:

https://brainly.in/question/42140095?

https://brainly.in/question/30816677?

https://brainly.in/question/18010374?

https://brainly.in/question/44313763?

Similar questions