5. Write the following as Java Expression:
(a * x ^ 5 + b)/(a + d ^ 4)
Answers
Answered by
3
Question:-
- Write a Java Expression for the following:-
______
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:-
- Math.max() is used to find the maximum value between 2 numbers. SYNTAX:- Math.max(a,b);
- Math.min() returns the minimum value between two numbers. SYNTAX:- Math.min(x,y);
- Math.abs() returns absolute value of the given number. SYNTAX:- Math.abs();
- Math.ceil() returns rounded value upto nearest higher integer. SYNTAX:- Math.ceil(x);
- Math.floor() returns rounded value upto nearest lower integer. SYNTAX;- Math.floor(x);
- Math.round() returns the rounded value of the number upto nearest integer.
- Math.cbrt() returns cube root of a number. SYNTAX:- Math.cbrt(x);
- Math.sqrt() returns square root of a number. SYNTAX:- Math.sqrt(x);
Similar questions
Physics,
2 months ago
India Languages,
5 months ago
English,
5 months ago
Social Sciences,
11 months ago