Scrigroup - Documente si articole

     

HomeDocumenteUploadResurseAlte limbi doc
AccessAdobe photoshopAlgoritmiAutocadBaze de dateCC sharp
CalculatoareCorel drawDot netExcelFox proFrontpageHardware
HtmlInternetJavaLinuxMatlabMs dosPascal
PhpPower pointRetele calculatoareSqlTutorialsWebdesignWindows
WordXml

AspAutocadCDot netExcelFox proHtmlJava
LinuxMathcadPhotoshopPhpSqlVisual studioWindowsXml

Constructor

c



+ Font mai mare | - Font mai mic



Constructor

The constructor is called automatically when the numerical integration object is instantiated. It initializes the integrator and prepares it for use.

Usage

CNumericalIntegrator Integ(pODE, pBT);

CNumericalIntegrator Integ(pODE, pBT, tout, y0, h0, atol, rtol);



CNumericalIntegrator* pInteg

pInteg = new CNumericalIntegrator(pODE, pBT);

pInteg = new CNumericalIntegrator(pODE, pBT, tout, y0, h0, atol, rtol);

Arguments

Variable

Type

Description

pODE

CDifferentialEquation*

Pointer to the ODE object derived from CDifferentialEquation. This package operates using polymorphism to ensure flexibility.

pBT

CButcherTable*

Pointer to the integration method object derived from CButcherTable.

tout

colvec

(Optional). Requested output times. These can also be set using SetTOut( later. Default: kNullVec.

y0

colvec

(Optional). Initial conditions for the states. These can also be set using SetICs( later. Default: kNullVec.

h0

double

(Optional). Initial step size. This can also be set using the Step Size Control Functions later. Default: 0 (see below).

atol

double

(Optional). Desired absolute tolerance on the local error. This can also be set using SetAbsTol( later. Default: -1 (see below).

rtol

double

(Optional). Desired relative tolerance on the local error. This can also be set using SetAbsTol( later. Default: -1 (see below).

Return Value

None.

Notes

The constructor is automatically called when the numerical integrator object is instantiated. You must supply it with at least two arguments, or up to the full seven. If you do not supply the optional parameters, the integrator will check the ODE object to see if it supplies default values for these items. If the ODE does not have defaults, then the values are left unchanged. In the case of tout and y0, this will generate an error until you set the values using SetTOut( and SetICs(). For the step size the default is to compute h0 automatically using the error tolerance. The values of atol and rtol will be set to 10-6 and 10-4, respectively, if not specified.



Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 659
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved