Computer Science, asked by sudhakarjena123, 7 months ago

Java expression for (a+b)2 + b

Answers

Answered by fortniteamanid
21

Explanation:

Java expression for: a2+b2/2ab would be – (Math.pow(a,2)+Math.pow(b,2)) / (2*a*b)

Notes

The same expression can also be written as

(a*a+b*b) / (2*a*b)

Common Errors

This expression needs appropriate use of brackets as shown in numerator and denominator for correct evaluation.

Answered by mohdanees199740
0

Answer:

lsylgltslyItddodyistifoc

Similar questions