easyplot
Plot of a function of one variable.
(x,y)=easyplot(func)
(x,y)=easyplot(func,a,b)
(x,y)=easyplot(func,a,b,tol)
Inputs 
func 
A function handle representing a function of the form y=f(x) .

a 
Optional input. A real number which is the lower limit of the interval over which the function is to be plotted.

b 
Optional input. A real number which is the upper limit of the interval over which the function is to be plotted.

tol 
Maximum desired accuracy for adaptive sampling. A subinterval bewtween two points at which the function has already been evaluated
is further refined if the accuarcy of the linear approximation
on the interval is estimated to be less than tol .

Outputs 
x 
The xcoordinates of points at which the function is sampled for plotting.

y 
The ycoordinates of points at which the function is sampled for plotting.

Description
easyplot
plots a function of one variable by using
adaptive sampling to
concentrate function evaluation at points where the function is
estimated to vary rapidly.
Example
>>subplot(2,1,1)
>>x=easyplot(@gamma,0.02,5)
>>xlabel("X Axis")
>>ylabel("Y Axis")
>>title("Gamma Function by Using Easyplot")
>>subplot(2,1,2)
>>plot(diff(x),'bo')
>>title("Sampling interval used by Easyplot")
>>xlabel("Point")
>>ylabel("Sampling Interval")