Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members Related Pages Search
DefiniteIntegralFunction Class ReferenceBasicGraph uses this to calculate the definite integral of a function.
More...
#include <definiteintegralfunction.h>
Inheritance diagram for DefiniteIntegralFunction:
[legend]Collaboration diagram for DefiniteIntegralFunction:
[legend]List of all members.
|
Public Methods |
| DefiniteIntegralFunction (BasicGraph *=0, int expression_count=0, double precision=0.5) |
| ~DefiniteIntegralFunction () |
Protected Methods |
void | calculate_and_draw (QPainter *) |
| When creating a math function subclass, overwrite this function to calculate and then draw whatever visual you wish using the given QPainter.
|
void | draw_stored (QPainter *) |
| When creating a math function subclass, overwrite this function with a function to more quickly draw the result of the function.
|
Detailed Description
BasicGraph uses this to calculate the definite integral of a function.
- Author:
-
Fungmeista
- Note:
-
This numerically calculates the definite integral using the Trapazoid Rule. This means that for non-continuous functions it will not return correct values for the definite integral since it is not defined.
Definition at line 33 of file definiteintegralfunction.h.
Member Function Documentation
void DefiniteIntegralFunction::calculate_and_draw |
( |
QPainter * |
painter |
) |
[protected, virtual] |
|
void DefiniteIntegralFunction::draw_stored |
( |
QPainter * |
painter |
) |
[protected, virtual] |
|
|
When creating a math function subclass, overwrite this function with a function to more quickly draw the result of the function.
For example, if calculate_and_draw calculates many points, these can be saved and drawn in draw_stored instead of recalculating them.
Reimplemented from MathFunction.
Definition at line 73 of file definiteintegralfunction.cpp.
Referenced by calculate_and_draw(). |
The documentation for this class was generated from the following files:
|