summaryrefslogtreecommitdiffstats
path: root/Project/Exponential.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-09 19:23:52 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-09 19:23:52 -0300
commit2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274 (patch)
tree4b0a9fb363e6745bddf373057ac02a878893c483 /Project/Exponential.cpp
parent9fb33a91aa22fbce6d0b74529e07af9f7781b916 (diff)
downloadPSP.git-2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274.tar.gz
PSP.git-2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274.tar.xz
PSP.git-2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274.zip
Several solutions implemented
Diffstat (limited to 'Project/Exponential.cpp')
-rw-r--r--Project/Exponential.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Project/Exponential.cpp b/Project/Exponential.cpp
index 7c4f1fe..a197b93 100644
--- a/Project/Exponential.cpp
+++ b/Project/Exponential.cpp
@@ -111,3 +111,9 @@ void Exponential::SetValues(double aValue, double bValue)
m_aValue = aValue;
m_bValue = bValue;
}
+
+bool Exponential::Solve(double input)
+{
+ m_output = m_aValue * std::exp(m_bValue * input);
+ return true;
+}