Computer Science, asked by MayaSharma1422, 4 months ago

write the java expression for the following: 1. | e y - y |
2. √ a³ + b³ - c³​

Answers

Answered by BrainlyProgrammer
2

\huge\star\underbrace{\mathtt\red{⫷❥ᴀ᭄} \mathtt\green{n~ }\mathtt\blue{ §} \mathtt\purple{₩}\mathtt\orange{Σ} \mathtt\pink{R⫸}}\star

____________________________

Java Expression for:

  • |ey-y|

=>Math.abs((e*y)-y)

  • (+-c³)

=>

Math.sqrt(Math.pow(a,3)+Math.pow(b,3)-Math.pow(c,3)

_____________________________

Note:-

  1. Math.abs() is used for finding absolute value of the given number
  2. Math.pow() is used for a number raised to power x {(n}^{x)}
  3. Math.sqrt() is used for finding square root of the given number

_____________________

More Math functions:-

  • Math.min()
  • Math.max()
  • Math.rint()
  • Math.cbrt()....etc
Similar questions