Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120050072
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
Tue, Jul 1, 14:36
Size
742 B
Mime Type
text/x-c
Expires
Thu, Jul 3, 14:36 (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
27131505
Attached To
R1106 Programming Concept Rouaze
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