Computer Science, asked by ajkyal2006, 8 months ago

Write the equivalent Java expression

Attachments:

Answers

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

\underline{\large{\sf{Question:}}}

  • a = ( m + n ) / m¹² + n⁴

 \red{\underline{\large{\sf{Required \: Answer:}}}}

  • In this question we would be only using the Math.pow method because m is raised to the power 12 and n is raised to the power 4.

 \red \bigstar   \boxed{\large{\sf{a \:  =  \: (m + n) \: / \:Math.pow m,12) +Math.pow( n,4))}}}  \red\bigstar

\underline{\large{\sf{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.ceil returns smallest integer which is greater or equal to the argument.
  • Math.max gives largest of two arguments
  • Math.min gives smallest of two arguments.
Similar questions