40 fNumberOfVariables(numberOfVariables)
43 unsigned int noVariables= std::max(numberOfVariables,
46 dydxTemp =
new G4double[noVariables] ;
72 yTemp[7] = yOut[7] = yIn[7];
74 for(
G4int i = 0; i < fNumberOfVariables; ++i )
76 yTemp[i] = yIn[i] + 0.5 * h*dydx[i] ;
81 for(
G4int i = 0; i < fNumberOfVariables; ++i )
83 yOut[i] = yIn[i] + h * ( dydxTemp[i] );
void RightHandSide(const G4double y[], G4double dydx[]) const
G4int GetNumberOfStateVariables() const
G4SimpleRunge(G4EquationOfMotion *EquationRhs, G4int numberOfVariables=6)
void DumbStepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[])