feat: some ideas on resets
This commit is contained in:
parent
ac4e066bf8
commit
8f6320b30e
4 changed files with 24 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
|||
let g = 9.81
|
||||
let y0 = 50.0
|
||||
let y'0 = 0.0
|
||||
let y0 = 0.0
|
||||
let y'0 = 10.0
|
||||
|
||||
let hybrid ball (y0, y'0) = (y, y', z) where
|
||||
rec der y = y' init y0
|
||||
|
|
@ -15,7 +15,7 @@ let hybrid main () =
|
|||
print_float t;
|
||||
print_string "\t";
|
||||
print_float y;
|
||||
print_string "\t";
|
||||
print_float y';
|
||||
(* print_string "\t";
|
||||
print_float y'; *)
|
||||
print_newline ()
|
||||
); ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue