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, 4 insertions, 9 deletions
diff --git a/chaos/src/latoomutbeta.hpp b/chaos/src/latoomutbeta.hpp
index e27e5a2..a3562c8 100644
--- a/chaos/src/latoomutbeta.hpp
+++ b/chaos/src/latoomutbeta.hpp
@@ -60,18 +60,13 @@ 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
- }
- };
+ if (m_data[0] == 0 && m_data[1] == 0)
+ for (int i = 0; i != 2; ++i)
+ m_data[i] = rand_range(0,0.1);
+ }
CHAOS_SYSVAR_FUNCS(x1, 0);
CHAOS_SYSVAR_FUNCS(x2, 1);