| | |
Applying mathematical equations to JAVA code
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 1,656
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,844
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
Views: 702 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie number object objects oracle oriented panel print printf problem program programming project projects recursion replaydirector reporting researchinmotion return robot rotatetext scanner screen se server set size sms socket sort sql stream string swing test threads time transfer tree ubuntu windows






