Skip to content

Commit 02458b0

Browse files
committed
Change default system to Peter de Jong attractor
1 parent a1f0567 commit 02458b0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tools/attractor.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ fn build_dynamical_system_function(args: &CmdlineOptions) -> eyre::Result<Dynami
100100
build_dynamical_system_function_from_args(args)
101101
} else {
102102
// If no --math arguments are provided, use a default function useful for prototyping
103-
Ok(Box::new(|x, y| (x + 1.0, x * y - y)))
103+
Ok(Box::new(|x, y| {
104+
(
105+
f64::sin(0.97 * y) - f64::cos(-1.899 * x),
106+
f64::sin(1.381 * x) - f64::cos(-1.506 * y),
107+
)
108+
}))
104109
}
105110
}
106111

0 commit comments

Comments
 (0)