Computer Science, asked by jeevikaanthwal9a2103, 5 months ago

5. Write the following as Java Expression:
(a * x ^ 5 + b)/(a + d ^ 4)​

Answers

Answered by BrainlyProgrammer
3

Question:-

  • Write a Java Expression for the following:-

 \frac{(a*x⁵+b)}{a +  {d}^{4} }

______

Answer:-

  • (a*Math.pow(x,5)+b)/(a+Math.pow(d,4))

_______

Note:-

  • Math.pow() means a number raised to power x (n^x)
  • Math.pow() always returns a value in double data type.

____

More about Math functions:-

  1. Math.max() is used to find the maximum value between 2 numbers. SYNTAX:- Math.max(a,b);
  2. Math.min() returns the minimum value between two numbers. SYNTAX:- Math.min(x,y);
  3. Math.abs() returns absolute value of the given number. SYNTAX:- Math.abs();
  4. Math.ceil() returns rounded value upto nearest higher integer. SYNTAX:- Math.ceil(x);
  5. Math.floor() returns rounded value upto nearest lower integer. SYNTAX;- Math.floor(x);
  6. Math.round() returns the rounded value of the number upto nearest integer.
  7. Math.cbrt() returns cube root of a number. SYNTAX:- Math.cbrt(x);
  8. Math.sqrt() returns square root of a number. SYNTAX:- Math.sqrt(x);
Similar questions