diff options
Diffstat (limited to 'Project/Exponential.cpp')
-rw-r--r-- | Project/Exponential.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/Exponential.cpp b/Project/Exponential.cpp index e0daeef..3ff1842 100644 --- a/Project/Exponential.cpp +++ b/Project/Exponential.cpp @@ -117,3 +117,10 @@ bool Exponential::Solve(double input, double timeStep) m_output = m_aValue * std::exp(m_bValue * input); return true; } + +Element* Exponential::GetCopy() +{ + Exponential* copy = new Exponential(m_elementID); + *copy = *this; + return copy; +} |