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.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
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?
Depends on the equation. A lot of equations are done for you and are included in Math .
double theta = 0.5;
double cosinetheta = Math.cos (theta);
Some equations you'll have to write out or combine with Math functions.
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]
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
It all depends, if you want a numerical analysis approach it is a piece of piss. i.e using the trapezium rule for integration.
Something more than that, such as mathematica's engine would be a lot more involved.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241