C# 클래스 Nexus.NumericalAnalysis.OdeSolver

This class implements functions that solve first-order ordinary differential equations (ODEs).
파일 보기 프로젝트 열기: tgjones/nexus

공개 메소드들

메소드 설명
Solve ( float initial, float x, float h ) : float[]

This method solves first-order ODEs. It is passed an array of dependent variables in "array" at x, and returns an array of new values at x + h.

보호된 메소드들

메소드 설명
DoEulerStep ( float initial, float derivs, float h ) : float[]

Processes a simple Euler step

OdeSolver ( int dimensions, CalculateDerivatives callback )

메소드 상세

DoEulerStep() 보호된 정적인 메소드

Processes a simple Euler step
protected static DoEulerStep ( float initial, float derivs, float h ) : float[]
initial float
derivs float
h float
리턴 float[]

OdeSolver() 보호된 메소드

protected OdeSolver ( int dimensions, CalculateDerivatives callback )
dimensions int
callback CalculateDerivatives

Solve() 공개 추상적인 메소드

This method solves first-order ODEs. It is passed an array of dependent variables in "array" at x, and returns an array of new values at x + h.
public abstract Solve ( float initial, float x, float h ) : float[]
initial float Array of initial values
x float Initial value of x (usually time)
h float Increment value for x (usually delta time)
리턴 float[]