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.

% ex196.m:  Repeated Solutions for dy/dx= sin(x y)				 
clear all
F=inline('sin(X.*Y)', 'X', 'Y');
while 1==1					% Beginning of outer loop
   X(1)=input('x1=  (e.g. 0) ');
   if X(1)<0,  break,  end		% Break on negative input
   Y(1)=input('y1=  (e.g. 2) ');
   n=500;		h=0.01;
   for i=1:n					% Beginning of inner loop
      dy=F( X(i), Y(i))*h;
   end						% End of inner loop
figure(1),  plot(X,Y),  grid on,  axis([0 5 0 5])	    
      title( 'dy/dx= sin(xy)'),  hold on
end						% End of outer loop
hold off

Contact us