Closed stepthom closed 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:
MathFunction
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.
integrate()
differentiate()
Also, please create unit tests for the new integrate() method.
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
MathFunction
s, 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 theMathFunction
class, similar to thedifferentiate()
method.Also, please create unit tests for the new
integrate()
method.