EulerVector Class Reference

#include <euler_vector.h>

List of all members.

Public Member Functions

 EulerVector ()
void Clear ()
void ComputeOneEulerStep (double a, double b, double c, double d, double dt)

Public Attributes

double x0
double x1
double x2


Detailed Description

Definition at line 23 of file euler_vector.h.


Constructor & Destructor Documentation

EulerVector::EulerVector (  )  [inline]

Definition at line 27 of file euler_vector.h.

00027 { Clear(); };

Here is the call graph for this function:


Member Function Documentation

void EulerVector::Clear (  ) 

Set the euler vector to (0, 0, 0).

Definition at line 25 of file euler_vector.cpp.

00025                        {
00026   x0 = 0.0;
00027   x1 = 0.0;
00028   x2 = 0.0;
00029 }

Here is the caller graph for this function:

void EulerVector::ComputeOneEulerStep ( double  a,
double  b,
double  c,
double  d,
double  dt 
)

Solve a.x'' + b.x' + c.x = d equation using Euler method.

Definition at line 34 of file euler_vector.cpp.

00034                                                                                       {
00035   x2 = (d - b * x1 - c * x0) / a;
00036   x1 = x1 + x2 * dt;
00037   x0 = x0 + x1 * dt;
00038 }

Here is the caller graph for this function:


Member Data Documentation

double EulerVector::x0

Definition at line 25 of file euler_vector.h.

double EulerVector::x1

Definition at line 25 of file euler_vector.h.

double EulerVector::x2

Definition at line 25 of file euler_vector.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 13:45:12 2007 for Wormux by  doxygen 1.4.7