SIMLIB/C++
3.09
Toggle main menu visibility
Loading...
Searching...
No Matches
src
ni_fw.h
Go to the documentation of this file.
1
/////////////////////////////////////////////////////////////////////////////
2
//! \file ni_fw.h Fowler-Warten method
3
//
4
// Copyright (c) 1996-1997 David Leska
5
// Copyright (c) 1998-2004 Petr Peringer
6
//
7
// This library is licensed under GNU Library GPL. See the file COPYING.
8
//
9
10
//
11
// numerical integration: Fowler-Warten's method
12
//
13
14
15
#include "
simlib.h
"
16
17
namespace
simlib3
{
18
19
////////////////////////////////////////////////////////////////////////////
20
// class representing the integration method
21
//
22
class
FW
:
public
SingleStepMethod
{
23
private
:
24
bool
FW_First
;
// is method called for first time?
25
Memory
Y1
,
ERR
;
// auxiliary memories
26
protected
:
27
static
const
double
prec
;
// near zero number
28
public
:
29
FW
(
const
char
* name) :
// registrate method and name it
30
SingleStepMethod
(name),
31
FW_First
(true)
32
{
/*NOTHING*/
}
33
virtual
~FW
()
// destructor
34
{
/*NOTHING*/
}
35
virtual
bool
PrepareStep
(
void
)
override
;
// prepare object for integration step
36
virtual
void
Integrate
(
void
)
override
;
// integration method
37
};
// class FW
38
39
}
40
41
// end of ni_fw.h
42
simlib3::FW::Y1
Memory Y1
Definition
ni_fw.h:25
simlib3::FW::~FW
virtual ~FW()
Definition
ni_fw.h:33
simlib3::FW::PrepareStep
virtual bool PrepareStep(void) override
prepare object for integration step
Definition
ni_fw.cc:305
simlib3::FW::Integrate
virtual void Integrate(void) override
Definition
ni_fw.cc:38
simlib3::FW::prec
static const double prec
Definition
ni_fw.h:27
simlib3::FW::FW_First
bool FW_First
Definition
ni_fw.h:24
simlib3::FW::ERR
Memory ERR
Definition
ni_fw.h:25
simlib3::FW::FW
FW(const char *name)
Definition
ni_fw.h:29
simlib3::IntegrationMethod::Memory
Definition
simlib.h:1097
simlib3::SingleStepMethod::SingleStepMethod
SingleStepMethod(const char *name)
Definition
simlib.h:1152
simlib3
Implementation of class CalendarList interface is static - using global functions in SQS namespace.
Definition
algloop.cc:32
simlib.h
Main SIMLIB/C++ interface.
Generated on
for SIMLIB/C++ by
1.18.0