diff options
Diffstat (limited to 'Project/Exponential.cpp')
-rw-r--r-- | Project/Exponential.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Project/Exponential.cpp b/Project/Exponential.cpp index e07525b..a021854 100644 --- a/Project/Exponential.cpp +++ b/Project/Exponential.cpp @@ -129,9 +129,13 @@ void Exponential::SetValues(double aValue, double bValue) m_bValue = bValue; } -bool Exponential::Solve(double input, double timeStep, double currentTime) +bool Exponential::Solve(double* input, double timeStep) { - m_output = m_aValue * std::exp(m_bValue * input); + if(!input){ + m_output = 0.0; + return true; + } + m_output = m_aValue * std::exp(m_bValue * input[0]); return true; } |