From c6d815b6b11504be68d7a97df63cfef749624418 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 20 Dec 2017 20:45:35 -0200 Subject: Math expr GUI implemented --- Project/Exponential.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Exponential.cpp') diff --git a/Project/Exponential.cpp b/Project/Exponential.cpp index 64af421..e07525b 100644 --- a/Project/Exponential.cpp +++ b/Project/Exponential.cpp @@ -129,7 +129,7 @@ void Exponential::SetValues(double aValue, double bValue) m_bValue = bValue; } -bool Exponential::Solve(double input, double timeStep) +bool Exponential::Solve(double input, double timeStep, double currentTime) { m_output = m_aValue * std::exp(m_bValue * input); return true; -- cgit From dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sun, 31 Dec 2017 17:59:10 -0200 Subject: Math Expression implemented --- Project/Exponential.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Project/Exponential.cpp') 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; } -- cgit