Computer Science, asked by mishti102, 1 month ago

Please help me

dont put irrelevent answers and dont spam

Attachments:

Answers

Answered by BrainlyProgrammer
11

Answer:

(a)  \green{\tt \: Math.pow((a+b),n)/(Math.sqrt(2)+b)}

(b)  \green{\tt \: Math.pow(a,2)+Math.pow(b,2)}

(c)  \green{\tt \: z=Math.pow(x,3)+Math.pow(y,3)+(x* y)/z}

 (d)\green{ \tt(Math.pow(a,2)+Math.pow(b,2))/(2* a *b)}

(e) \green{ \tt u*t+(1/2) *f * Math.pow(t,2)}

 (f)\green{ \tt Math.sqrt(2 * a* s+Math.pow(u,2)}

Note:-

  • Math.pow(a) returns a number raised to power other number. Return data type: Double

_______

More about Math Functions:-

  • Math.ceil(a) - Rounds the number upto next higher integer. Return data type: Double
  • Math.floor(a) - Rounds the number upto next lower integer. Return data type: Double.
  • Math.max(a,b)- Returns the maximum value between two parameters. Return data type: Depends on the data type of the parameters.
  • Math.min(a,b)- Returns minimum value between two parameters. Return data type: Depends on the data type of the parameters.
  • Math.cbrt(a)- Returns cube root. Return data type: Double.
  • Math.sqrt(a)- Returns square root. Return data type: Double.
  • Math.log(a)- Returns natural logarithmic value of a given argument. Return data type: Double.
  • Math.round(a)- Returns the number rounded to the nearest integer. (For more info: Please check the Knowledge box given at last.)
  • Math.rint(a)- Returns the nearest integer of a given number. Return data type: doubleMath.log(a)
  • Math.exp(a)- Returns exponential value of a given argument. Return data type: double
  • Math.random()- There are no argument in this function and it returns random number between 0 and 1. Return data type: double
  • Math.abs(a) returns absolute (positive) value of a number. Return data type: Depends on data type input given by the user.

_______

Knowledge Box...!

  • It is necessary to know that round() and rint() are not same.
  • Math.round() returns number in int data type while Math.rint() returns number in double data type.
  • Another Difference... Let's take -9.5 as a parameter Math.round(-9.5) will return -9 while Math.rint(-9.5) returns -10.0
Similar questions