• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

Java convert a formula

How do your convert this to a Java formula?

r = 3.V  1/3                                a = (36.rr.V2)1/3
       4 rr      

It states rr is Maht.PI and using Math.pow(x,y) method.

Any help would greatly be appreciated.
0
ca1358
Asked:
ca1358
1 Solution
 
javaexpertoCommented:
V and V2 are int variables? in the first  double r = ((3*V) * (1/3)) / (Math.PI * 4) I guess is a multiplication and then a divison right?
the second: double a = Math.pow((36 * Math.PI) * V2, 1/3);
in the second i suppose u want to raise to the power 1/3 the multiplication of 36rr and V2
0
 
ca1358Author Commented:
Thank you!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now