Solved

Java convert a formula

Posted on 2008-10-15
2
225 Views
Last Modified: 2012-05-05
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
Comment
Question by:ca1358
2 Comments
 
LVL 6

Accepted Solution

by:
javaexperto earned 500 total points
ID: 22723052
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
 

Author Closing Comment

by:ca1358
ID: 31506307
Thank you!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
network + 7 80
allswap challenge 6 79
what is a "java.lang.System Property"   ? 20 57
How to convert String matching to regex in java 4 21
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now