Write an expression in Java for: x3 + √aa2 + bb2
anindyaadhikari13:
Hi @arnab16062008 if you have any doubt, please ask here. Casual chats not allowed here.
Answers
Answered by
7
Correct Question :-
- Write the following expression in Java
Answer :-
- (Math.pow(x,3))+(Math.sqrt(a*Math.pow(a,2)))+ (b*Math.pow(b,2))
Note :-
- Math.pow() always returns the value in double data type.
- Math.sqrt() also returns the value in double data type.
____________
Learn 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(a);
- 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. SYNTAX:- Math.round(x);
- Math.cbrt() returns cube root of a number. SYNTAX:- Math.cbrt(x);
- Math.sqrt() returns square root of a positive real number. SYNTAX:- Math.sqrt(x);
Similar questions
Math,
1 month ago
Math,
1 month ago
Social Sciences,
3 months ago
Computer Science,
3 months ago
History,
9 months ago
Math,
9 months ago
Math,
9 months ago