Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61303460
AbstractOdeSolver.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 5, 19:58
Size
735 B
Mime Type
text/x-c
Expires
Tue, May 7, 19:58 (2 d)
Engine
blob
Format
Raw Data
Handle
17493066
Attached To
R9360 PCSC_git
AbstractOdeSolver.cpp
View Options
/*
* AbstractOdeSolver.cpp
*
* Created on: Oct 25, 2012
* Author: rpopescu
*/
#include "AbstractOdeSolver.hpp"
AbstractOdeSolver::AbstractOdeSolver()
: stepSize(), initialTime(), finalTime(), initialValue(), f_rhs(0) {}
AbstractOdeSolver::~AbstractOdeSolver() {}
void AbstractOdeSolver::SetStepSize(const double h) { stepSize = h; }
void AbstractOdeSolver::SetTimeInterval(const double t0, const double t1) {
initialTime = t0;
finalTime = t1;
}
void AbstractOdeSolver::SetInitialValue(const double y0) { initialValue = y0; }
void AbstractOdeSolver::SetRightHandSide(double (*f)(double y, double t)) {
f_rhs = f;
}
double AbstractOdeSolver::RightHandSide(double y, double t) const {
return f_rhs(y, t);
}
Event Timeline
Log In to Comment