| | |
Applying mathematical equations to JAVA code
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 1,642
Reputation:
Solved Threads: 206
Probably, do a google search for them. If you're talking about simple differentiation and integration (i.e. power rule) then it is trivial anyway, and so is chain rule for differentiation. Why don't you mention the specific formula you're trying to code and then show some progress or ideas etc on it.
•
•
Join Date: Jan 2008
Posts: 3,837
Reputation:
Solved Threads: 503
•
•
•
•
Ofcourse I can get to understand the logic..What I want to know is how i can get, say a given equation to integrate or differentiate a number, then change that logic, to JAVA code..is there any application or tool that can do this?
Java Syntax (Toggle Plain Text)
double theta = 0.5; double cosinetheta = Math.cos (theta);
Some equations you'll have to write out or combine with Math functions.
Java Syntax (Toggle Plain Text)
double x = 0.5; double y = Math.cos (x) + Math.pow (theta, 1.5) - 2 * x + 6.3;
[edit]
And Math is just one of many classes you can use. There is all sorts of stuff out there, both from Sun and from individuals who have posted work.
[/edit]
Last edited by VernonDozier; May 28th, 2009 at 2:44 am.
You may use mathematics open source API for your purpose. Mathemaca, /Link is a toolkit that integrates Mathematica and Java. http://reference.wolfram.com/mathema...w-summary.html
J/Link JavaDoc Documentation
http://www.wolfram.com/solutions/mat...mentation/api/
Open source :
http://ojalgo.org/what.html
J/Link JavaDoc Documentation
http://www.wolfram.com/solutions/mat...mentation/api/
Open source :
http://ojalgo.org/what.html
Last edited by adatapost; May 28th, 2009 at 6:12 am.
![]() |
Similar Threads
- Java code to compare XML files (Java)
- Auto generate Java Code from WSDL using Axis (Java)
- Executing Shell script from Java code. (Java)
- download jar files using java code (Java)
- I want to know about the java code. Help please!!!! (Java)
- Move out java code from jsp (Java)
- Help with Java code (Java)
- Can N E 1 Help!!!! -- Need sample Java code (Java)
- java code newbie (Java)
Other Threads in the Java Forum
- Previous Thread: Increment Variable Name Inside Loop
- Next Thread: Applet Scroll Bars
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application arguments array arrays automation awt bidirectional binary birt bluetooth calculator chat class classes client code columns component database designadrawingapplicationusingjavajslider draw eclipse editor error errors event exception expand file fractal game givemetehcodez graphics gui guidancer helpwithhomework html ide image inetaddress input integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jme jmf jni jpanel julia link linux list loop map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie number object oracle plazmic print problem program programming project recursion scanner screen server set signing size smart sms smsspam socket sort sql string subclass support swing test threads time tree webservices windows






