Computer Science, asked by akshaysingh9422, 9 months ago

Write an equivalent Java expression for √a+b

Answers

Answered by AhsanAyaz
3

Answer:

(Math.sqrt(a)*2) + (b*b).

Explanation:

please follow me and make me brainliest

Answered by SƬᏗᏒᏇᏗƦƦᎥᎧƦ
4

Explaination :

  • Here we would be using sqrt method which returns the square root of a double value. We know that argument is a and in this question the value of a is being returned.

General syntax:-

  • Math.MethodName (arguments)

Method name sqrt and argument is a.

Syntax of pow method:-

  • Math.sqrt(x)

Final Answer:-

  • Math.sqrt(a) + b

Additional Information :

  • Method is a named block of a códe in a class. It is executed within a defined set of instructions.

  • Methods and variables of math class are defined as static members.

  • Java.lang package contains classes and interfaces which are fundamental to Java programming language.

  • The math class of java.lang package contains generic mathematical functions including some geometric and trigonometric function.

  • Math.cbrt returns cube root of a double value.

  • Math.ceil returns smallest integer which is greater or equal to the argument.

  • Math.abs returns us the absolute value of a given argument.

  • Math.pow it returns us the value of a first given argument raised to the power of the given second argument.

More similar questions :

  • https://brainly.in/question/42140095?

  • https://brainly.in/question/30816677?

  • https://brainly.in/question/18010374?

  • https://brainly.in/question/44313763
Similar questions