aboutsummaryrefslogtreecommitdiff
path: root/chaos/src/latoomutbeta.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chaos/src/latoomutbeta.hpp')
-rw-r--r--chaos/src/latoomutbeta.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/chaos/src/latoomutbeta.hpp b/chaos/src/latoomutbeta.hpp
index 4940be1..fac43d6 100644
--- a/chaos/src/latoomutbeta.hpp
+++ b/chaos/src/latoomutbeta.hpp
@@ -58,6 +58,19 @@ public:
m_data[1] = sin(x1*a) + tmp*tmp;
}
+
+ /* function has a fix point for x1 == x2 == 0 */
+ virtual void m_verify()
+ {
+ for (int i = 0; i != get_num_eq(); ++i)
+ {
+#ifndef DOUBLE_PRECISION
+ if (PD_BIGORSMALL(m_data[i]))
+ m_data[i] = 0.01;
+#endif
+ }
+ };
+
CHAOS_SYSVAR_FUNCS(x1, 0);
CHAOS_SYSVAR_FUNCS(x2, 1);