karthik3k
- 149
- 0
Calculus in Programming ??
How can i differentiate / Integrate in C/C++, PERL, PYTHON ?
How can i differentiate / Integrate in C/C++, PERL, PYTHON ?
The discussion centers on the application of calculus within programming languages such as C, C++, PERL, and PYTHON, particularly in the context of real-time programming. Participants explore methods for differentiation and integration, including the use of libraries and algorithms.
Participants express a general consensus that built-in functions for calculus are lacking in these programming languages, but there is no agreement on the best approach to implement calculus operations. Multiple competing views on the use of libraries, methods, and resources remain present.
Some participants note that the results obtained through programming may differ from hand-calculated answers due to the nature of mathematical expressions and approximations used in numerical methods.
Originally posted by rick1138
You will definitely have to look for special math libraries to find algebraic solutions. Most programming uses approximations because, as yu probably know, many integrals are not exactly solvable. Runge-Kutta is the most efficient in general, but Monte Carlo methods are sometimes used. I like the simplicity of Monte Carlo methods- screw math, just get drunk and throw darts at pictures of your equations, and you'll have the answer.