Print

Print


Hello Derivers,

I started this new year (happy new year to you all) with creating an
utilityfile that I needed often in the past but never had the time to make it.
It's called shade.mth (attached to this mail)
This file contains four functions for shading an area between to the to
functions f(x) and g(x) on the interval [a,b]:

SHADE(a,b,space)				///////////
SHADE_UNDER(a,b,space)			//////////
SHADE_BACK(a,b,space)			\\\\\\\\\\	
SHADE_BACK_UNDER(a,b,space)		\\\\\\\\\\\

You must define de functions F(x) and G(x) before using the functions.
The parameters a and b are the bouderies of the interval a,b (with a<b)
The parameter space is the space between two spacinglines. This parameter
is optional. The standard value for space = 0.2. 
You must simpliy the function before plotting.
The vertical boundaries x=a and y=b will not be calculated and therefore
not plotted.

The SHADE-function draws lines in the area where f(x)>g(x) on the interval
[a,b]. The angel of the lines is 45° if the x-scale and the y-scale in the
plot are equal.

The SHADE_UNDER-function draws lines in the area where g(x)>f(x) on the
interval [a,b]. The angel of the lines is 45° if the x-scale and the
y-scale in the plot are equal.

The SHADE_BACK-function draws lines in the area where f(x)>g(x) on the
interval [a,b]. The angel of the lines is -45° if the x-scale and the
y-scale in the plot are equal.

The SHADE_BACK_UNDER-function draws lines in the area where g(x)>f(x) on
the interval [a,b]. The angel of the lines is -45° if the x-scale and the
y-scale in the plot are equal.


The shading works with various functions. The functions dous not work on
intervals on wich either f(x) or g(x) has an asymptotic behaviour.



Peer van de sanden