libnum:classes:gear
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| libnum:classes:gear [2026/03/04 15:33] – abc | libnum:classes:gear [2026/03/29 13:53] (current) – abc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Libnum Classes ====== | ====== Libnum Classes ====== | ||
| - | ====== Integration of Systems of Linear Differential Equations. \\ Gear's method ====== | + | ===== Gear Integration Method |
| + | ===== class Gear; ===== | ||
| + | Namespace // | ||
| - | namespace NumericMethods | + | See: '' |
| - | See: '' | ||
| - | |||
| - | class [[# | ||
| class [[# | class [[# | ||
| struct [[# | struct [[# | ||
| Line 16: | Line 15: | ||
| class [[# | class [[# | ||
| - | ===== Gear ===== | ||
| class Gear | class Gear | ||
| { | { | ||
| Line 23: | Line 21: | ||
| | | ||
| void set(int n, GearUserProc* derFunc, GearUserProc* jacFunc); | void set(int n, GearUserProc* derFunc, GearUserProc* jacFunc); | ||
| - | void setCallback(GearEngineCallback& | + | void setCallback(GearEngineCallback& |
| Message solve(const double t_begin, const double t_end, const double* y0); | Message solve(const double t_begin, const double t_end, const double* y0); | ||
| GearEngineContext engineContext; | GearEngineContext engineContext; | ||
| Line 118: | Line 116: | ||
| RHMAX = 1; | RHMAX = 1; | ||
| See Gear Algorithm for details. | See Gear Algorithm for details. | ||
| + | |||
| + | ===== Gear Output ===== | ||
| + | The Output is implemented via // | ||
| + | |||
| + | The //libnum// library includes the following two classes for general useage: // | ||
| + | * standard C output stream stdout (// | ||
| + | * string buffer (// | ||
| + | * file (// | ||
| + | * and the like | ||
| + | |||
| + | The // | ||
| + | |||
| + | class GearPrintToStream : public GearEngineCallback | ||
| + | { | ||
| + | public: | ||
| + | GearPrintToStream(std:: | ||
| + | virtual bool call(const GearEngineContext& | ||
| + | void setFormat(const char* format); | ||
| + | }; | ||
| + | |||
| + | class GearPrintTable : public GearPrintToStream | ||
| + | { | ||
| + | public: | ||
| + | GearPrintTable(std:: | ||
| + | virtual bool call(const GearEngineContext& | ||
| + | void reset(); | ||
| + | }; | ||
| + | |||
| ---- | ---- | ||
| - | [ [[.:|Libnum classes]] ] [ [[..: | + | [ [[.:|Libnum classes]] ] [ [[..: |
libnum/classes/gear.1772627588.txt.gz · Last modified: by abc
