| MAT 294 The Mathematics of Change I |
Fall 2005 Announcements |
| Exam 2 See the outline of topics to be covered on Exam 2. The exam will be given Monday, November 14 in class. |
||||
Practice
Computations
|
||||
| Exam 1 See the outline of topics to be covered on Exam 1. The exam will be given Monday, October 17 in class. |
||||
| Secant
and Tanget Slopes - Java Applet Here is a link to the java applet we used in class: http://www.plu.edu/~heathdj/java/calc1/Secant.html |
||||
| Functions Framework The Functions Framework is now posted on the assignments page. The quiz covering the first page will be approximately September 26. The second page had a slight error in the original version which has now been corrected. When an m-file, one has to be careful with setting up a vector plot. If there are no condition statements on the input then you can apply the m-file function to the entire input vector such as x=-10:.1:10;
However if you make x a vector of inputs and your m-file contains a
statement such as the one in the example y=f(x); plot(x,y) function f=f(x)
then the conditional statement of "if
x<=0" is trying to test whether the entire vector is less
than or equal to zero. The way to get around this is to call the
function for each individual element of the input vector. The following
will always work:if x<=0 f=x^2+2*x-3; else f=2*x-3; end x=-10:.1:10;
for j=1:length(x) y(j)=f(x(j)); end plot(x,y) |