Computer Science, asked by Anandillalscatering, 11 months ago

Write java expression for following
|x^2+2xy|

Answers

Answered by swastik33roy
13

double s=Math.abs((x*x)+(2*x*y));

for it is given modulus...so we are using Math.abs()

to give out the absolute value


Anandillalscatering: How much marks did empirical formula in compulsory paet carried
Anandillalscatering: *part
swastik33roy: if u take into consideration the 1st one 2 then empirical should be 3
swastik33roy: or...2...if u take (i)=1.5+1.5
Anandillalscatering: Empirical formula i think was of 1
swastik33roy: can be...the council know
Answered by aqibkincsem
5

Answer:

The answer is Math.abs(x*x+(2*x*y)). This is based on the java specification being mentioend here. Java is the general purpose computer programming language and the same is concurrent and class based.

The language is object oriented and it has been particularly designed for the reason of impolementation dependencies. It consists of the JVM and this is considered to be the cornerstone as part of the Java platform.  

Explanation:

Similar questions