Computer Science, asked by vsredmi6969, 9 months ago

write the java expression for the following​

Attachments:

Answers

Answered by Bᴇʏᴏɴᴅᴇʀ
3

QUESTION:-

Java Expressions :-

ANSWER:-

1.] Math.cbrt((a+b)/(a*b))

2.] Math.exp((a-b)/(a+b))

_________________________________________

Functions:-

\bf{Math.sqrt} = Gives the square root of the expression.

\bf{Math.cbrt} = Gives the Cube root of the expression.

\bf{Math.pow} = Gives the power or exponential form of the expression.

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

Answer :

(i):-

  • math.cbrt (a + b / a + b)

(ii):-

  • a - b / a * b

Explaination :

First :-

  • We would be using math.cbrt method because the cube root of a double value that is that argument is being returned.

Second :-

  • Here no method is been used and the answer is formed by simply multiplying the variables.

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.
  • Double datatype is used if a output comes in decimal.

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