No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7


Gunnar Backstrom


13 Mar 2003 (Updated )

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

% ex131: Derivative as a Limiting Quotient
clear all
X=1.0:1e-3:1.5;  Y= sin(X);					
figure(1),  plot(X,Y),  grid on,  xlabel('x'),  ylabel('sin(x)')
x=1.2;						% Value of x for the derivative
H=logspace(-10, 0, 500);			% Vector of values h
Q=(sin(x+H)- sin(x))./H;		 	% Vector of quotients q
figure(2),  semilogx(H,Q),  grid on,  xlabel('h'),  ylabel('q')
format long,  limiting_q=Q(1),  derivative=cos(x)	% Comparison

Contact us