C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: how to implement integrations and differentiation Posted by Jonathan on 5 May 2008 at 6:45 AM
Analytical or numeric? It makes the answer rather different...

I once implemented a pretty good analytical differentiator in Perl...source here:
http://search.cpan.org/src/JONATHAN/Math-Calculus-Differentiate-0.3/Differentiate.pm
And it is a subclass of:
http://search.cpan.org/src/JONATHAN/Math-Calculus-Expression-0.2.2/Expression.pm
Which handles the parsing. You can probably read the comments and understand enough of the code to figure out how to re-create something similar in C++.

Analytical integration is rather harder than differentiation, so I never got around to working on that one.

Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
Thread Tree
perfectvijay how to implement integrations and differentiation on 17 Apr 2008 at 7:36 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.