stepthom / math-fun

Just testing out some fun with mathematics.
2 stars 2 forks source link

Integration, aka, Anti-Derivatives #11

Closed stepthom closed 11 years ago

stepthom commented 11 years ago

Similar to issue #4.

Add a command line flag in EasyMain that, when set, will cause the program to output the anti-derivative of each randomly-generated function.

Given the structure of our MathFunctions, it will be easy to implement anti-derivates. See Formulas 2 and 3 on the following webpage:

http://myhandbook.info/form_integ.html

This will probably be best implemented in a method named integrate() in the MathFunction class, similar to the differentiate() method.

Also, please create unit tests for the new integrate() method.