No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7



13 Mar 2003 (Updated )

Self-instructive text on undergraduate algebra, statistics, differential and integral calculus.

% ex196a.m:  Repeated Solution of  y'= sin(x y), RKF
clear all
while 1==1								% Beginning of outer loop
   x1=input('x1=  (e.g. 0) ');
   if x1<0,  break,  end				% Break on negative input
   y1=input('y1=  (e.g. 3) ');
   [X,Y]=ode45(f, [x1 8], y1, odeset('abstol',1e-8,  'reltol',1e-8));
   Yend=Y(length(Y))				% Display last y-value
figure(1),  plot(X,Y),  grid on,  axis([0 8 0 4])	    
      title( 'dy/dx= sin(xy)'),  xlabel('x'),  hold on
end										% End of outer loop
hold off

Contact us