Solved

Java convert a formula

Posted on 2008-10-15
2
227 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java stored proc example 9 46
web application structure 18 102
Need help aligning JRadioButton that put in a box using GridBagLayout 2 20
Java class and jar 3 25
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

821 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