Mercurial > octave
comparison scripts/ode/ode45.m @ 31265:c332a2f2959f
Clean up odeplot tests and demos (bug #63063)
* ode23.m, ode23s.m, ode45.m: Remove odeplot tests.
* odeplot.m: Convert inpot syntax test into a demo.
author | Ken Marek <marek_ka@mercer.edu> |
---|---|
date | Thu, 06 Oct 2022 16:36:29 -0400 |
parents | 449ed6f427cb |
children | 88fff8521d76 |
comparison
equal
deleted
inserted
replaced
31264:af3752d9a59f | 31265:c332a2f2959f |
---|---|
514 %! sol = ode45 (@(x,y) 1, [0 1], 1i); | 514 %! sol = ode45 (@(x,y) 1, [0 1], 1i); |
515 %! assert (imag (sol.y), ones (size (sol.y))); | 515 %! assert (imag (sol.y), ones (size (sol.y))); |
516 %! [x, y] = ode45 (@(x,y) 1, [0 1], 1i, odeset ("Refine", 1)); | 516 %! [x, y] = ode45 (@(x,y) 1, [0 1], 1i, odeset ("Refine", 1)); |
517 %! assert (imag (y), ones (size (y))); | 517 %! assert (imag (y), ones (size (y))); |
518 | 518 |
519 ## FIXME: convert to demo or a visible=off test with failable assert/error | |
520 ## statemments | |
521 ##%!test # Make sure odeplot works (default OutputFcn when no return value) | |
522 ##%! ode45 (@fpol, [0 2], [2 0]); | |
523 ##%! close all | |
524 | |
525 %!error <Invalid call> ode45 () | 519 %!error <Invalid call> ode45 () |
526 %!error <Invalid call> ode45 (1) | 520 %!error <Invalid call> ode45 (1) |
527 %!error <Invalid call> ode45 (1,2) | 521 %!error <Invalid call> ode45 (1,2) |
528 %!error <TRANGE must be a numeric> ode45 (@fpol, {[0 25]}, [3 15 1]) | 522 %!error <TRANGE must be a numeric> ode45 (@fpol, {[0 25]}, [3 15 1]) |
529 %!error <TRANGE must be a .* vector> ode45 (@fpol, [0 25; 25 0], [3 15 1]) | 523 %!error <TRANGE must be a .* vector> ode45 (@fpol, [0 25; 25 0], [3 15 1]) |