aboutsummaryrefslogtreecommitdiff
path: root/chaos/src/latoocarfian.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chaos/src/latoocarfian.hpp')
-rw-r--r--chaos/src/latoocarfian.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/chaos/src/latoocarfian.hpp b/chaos/src/latoocarfian.hpp
index c2a31a1..1fe1b9a 100644
--- a/chaos/src/latoocarfian.hpp
+++ b/chaos/src/latoocarfian.hpp
@@ -76,6 +76,18 @@ public:
{
return (f > -0.5) && (f < 1.5);
}
+
+ /* 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
+ }
+ };
};