Today we are going to look at functions and plots of functions. Below I have given a sequence of commands that you will need to graph some functions and some examples. Try out the commands that you see below, make sure that you understand how they work and how

> with(plots); # load functions about strings

> plot(sqrt(4-x^2),x=-2..2);

> A:=plot(sqrt(4-x^2),x=-2..2);

> display(A);

> B:=plot(sqrt(.25-(x+1.5)^2),x=-2..-1);

> display(B);

> display(A,B);

> C:=plot(piecewise(x>=-1 and x<1,-sqrt(1-x^2),x>=1,sqrt(.25-(x-1.5)^2)),x=-1..2);

> display(A,B,C);

Given real values

Define a piecewise function of

You should open up a new worksheet and start from scratch. You will have to save your work in a file and upload that file on to the course moodle. Your solution should be a sequence of commands where it is easy to change the input string and after you execute the sequence of commands you should have the correct output string. Please add documentation to your worksheet to explain how it works. Just a few sentences is sufficient, but imagine that you were opening up the worksheet for the first time and wanted to know what it did.

Just so I am as clear as possible. I should be able to change the values of

You should finish your assignment before class Thursday, September 20, 2012.