Computer Science, asked by khushikumari711089, 3 months ago

write equivalent java expression for the following: la^5 - √b|​

Answers

Answered by kamalrajatjoshi94
2

Answer:

Expression in Java:-

l*(Math.pow(a,5))-(Math.sqrt(b))*l;

But note if the second term is a full root then,

Expression:-

l*(Math.pow(a,5))-(Math.sqrt(b*l);

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

Answer:

Math.abs ( math.pow (a,5) - math.sqrt (b))

Explanation:

  • Here the absolute value of the given argument is being returned so we would be using math.abs method.
  • In the second condition of (a⁵) we would be using math.pow method because the first argument that is a is raised to the power 5
  • And in the third condition of (√b) we would be using math.sqrt method because the square root of a double value that is b is being returned.

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