Convert the following Java expressions into Arithmetic expressions :- [1x5=5]
i) Math.pow (x,3) + x*y*z + math.pow (y,4)
ii) Math.sqrt (l*l + b*b)
iii) D = Math.sqrt (2) * S
iv) SA = 2* (l*b + b*h + h*l)
v) V = 1/3 * p* math.pow (r,2) *h
Answers
Answered by
1
Answer:
The arithmetic expression for the given Java expressions are -
- x³ + xyz + y⁴
- √(l² + b²)
- D = S√2
- SA = 2(lb + bh + hl)
- V = 1/3 pr²h
Explanation:
- Math.pow(x, 3) returns x raised to the power 3.
- x*y*z is the product of x, y and z.
- Math.pow(y, 4) returns y raised to the power 4.
So, the arithmetic expression will be,
= x³ + xyz + y⁴
- Math.sqrt(l² + b²) returns the square root of l² + b².
So, arithmetic expression will be,
= √(l² + b²) [Note that l² + b² is written under radical sign]
- Math.sqrt(2) finds the square root of 2.
- Result of √2 is multiplied with S and stored in D.
So, arithmetic expression will be,
➡ D = √2S
- l*b, b*h and h*l are the products of (l, b), (b, h) and (h, l)
- Result of (lb + bh + lh) is multiplied by 2 and is stored in SA.
So, the arithmetic expression will be,
SA = 2(lb + bh + hl)
- Value of V is equal to 1/3 multiplied with p, r² and h.
So, arithmetic expression will be,
V = 1/3pr²h
Similar questions