write the java expression for the following: 1. | e y - y |
2. √ a³ + b³ - c³
Answers
Answered by
2
____________________________
Java Expression for:
- |ey-y|
=>Math.abs((e*y)-y)
- √(a³+b³-c³)
=>
Math.sqrt(Math.pow(a,3)+Math.pow(b,3)-Math.pow(c,3)
_____________________________
Note:-
- Math.abs() is used for finding absolute value of the given number
- Math.pow() is used for a number raised to power x {(n}^{x)}
- 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
Math,
2 months ago
Math,
4 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Social Sciences,
10 months ago