Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::MidpointSolver Class Reference

#include <MidpointSolver.h>

Inheritance diagram for OpenCAL::MidpointSolver:

Inheritance graph
[legend]
Collaboration diagram for OpenCAL::MidpointSolver:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void solve (float stepSize, ODESource *source)

Detailed Description

This ODE solver implements the Midpoint method for solving Ordinary Differential Equations

Definition at line 24 of file MidpointSolver.h.


Member Function Documentation

void MidpointSolver::solve float  stepSize,
ODESource source
[virtual]
 

\[ x(t_0 + h) = x(t_0) + h(f(x_0 + \frac{h}{2} f(x_0))) \]

Implements OpenCAL::ODESolver.

Definition at line 41 of file MidpointSolver.cpp.

References OpenCAL::PhaseSpace::add(), OpenCAL::ODESource::fillDerivative(), OpenCAL::ODESource::fillState(), OpenCAL::ODESource::fromState(), OpenCAL::ODESource::getDerivative(), and OpenCAL::ODESource::getState().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:36 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8