Computer Science, asked by kharimadebbarma, 3 months ago


II. Write the Java expressions for the following:
1. ab + bc + ca
2. a2 + ab - b2
3. ut +1/2at2
4.uv/u+v
5. (a + b)n
6. 2(lb+bh+lh)
7. a2+b2
8. x3 + xyz +y3​

Answers

Answered by EnaSharma
3

Answer:

ab+bc+ca

Explanation:

hope it will help you

Answered by DüllStâr
49

1. Mathematic expression:-

 \sf ab + bc + ca

1. Java Expression:-

 \sf{}(a*b) +(b*c) + (c*a)

 \\  \\

2. Mathematic expression:-

 \sf {a}^{2} + ab - {b}^{2}

2. Java Expression

 \sf(a*a) + (a*b) - (b*b)

or

 \sf{}Math.pow(a,2) + (a*b) -Math.pow{} (b,2)

 \\  \\

3. Mathematical Expression :

 \sf{}ut + \dfrac{1}{2a {t}^{2} }

3. Java Expression :

 \sf{}(u*t) + 1/(2*a*t*t)

 \\  \\

4. Mathematical Expression:

 \sf \dfrac{uv}{u + v}

4. Java Expression:

 \sf{}(u*v)/(u+v)

 \\  \\

5. Mathematical Expression:

 \sf(a + b)n

5. Java Expression:

 \sf(a + b)*n

 \\  \\

6. Mathematical Expression:

 \sf2(lb+bh+lh)

6. Java Expression:

 \sf2*((l*b)+(b*h)+(l*h))

 \\  \\

7. Mathematical Expression:

 \sf{} {a}^{2}  +  {b}^{2}

7. Java Expression:

 \sf{}( {a}*a) + (b*b)

or

 \sf{}Math.pow( a,2)+Math.pow(b,2)

 \\  \\

8. Mathematical Expression:

 \sf{} {x}^{3} + xyz + {y}^{3}

8. Java Expression:

 \sf{}( x*x*x)+ (x*y*z )+(y*y*y)

or

 \sf{}Math.pow( x,3)+ (x*y*z )+Math.pow(y,3)

Similar questions