You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Note: Due to a current bug in the interpreter, using this macro temporarily requires also importing the `A‼` macro from this library.
527
+
#
528
+
# Takes two functions and two values.
529
+
# - The first function should take a time value and a state vector and output the derivative of the state vector.
530
+
# - The second function should take anywhere from 1 to 4 arguments and return 0 or 1 for whether to continue simulating. Based on how many inputs the second function takes, it will be passed:
531
+
# 1. The current time
532
+
# 2. The current state vector
533
+
# 3. The array of all past times
534
+
# 4. The array of all past state vectors
535
+
#
536
+
# The two values should respectively be the initial time and the initial state vector.
537
+
#
538
+
# Example: Simulating a damped pendulum
539
+
# This simulates the motion of a damped pendulum that begins vertical with an initial angular velocity of 12 radians per second.
0 commit comments