indexing description: "A non-stiff set of ODEs (d02pcc example)" status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" class EXAMPLE_RK_ODE inherit EIFFELMATH_TESTING_FRAMEWORK STANDARD_ODE undefine print end feature -- Basic operations rhs (x: DOUBLE; y: ARRAY [DOUBLE]): ARRAY [DOUBLE] is do create Result.make (1, 2); Result.put (y @ 2, 1); Result.put (- (y @ 1), 2); end; g (x: DOUBLE; y: ARRAY [DOUBLE]): DOUBLE is do Result := y @ 1 end; output(x: DOUBLE; y: ARRAY [DOUBLE]) is do print (x); print ('%T'); print (y @ 1); print ('%T'); print (y @ 2); print ('%N'); end; jacobian (x: DOUBLE; y: ARRAY [DOUBLE]): BASIC_MATRIX is -- None available. do end; end -- class EXAMPLE_RK_ODE --|---------------------------------------------------------------- --| EiffelMath: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------