GET ALL YOUR ACADEMIC HELP AT ESSAYLINK.NET
EE 221, Summer 2015, Assignment 03 (Plotting and animation) 1 / 3
Guidelines: For paper problems, start each problem on a new sheet of paper. Write on only one side of each sheet. Clearly write your name, the assignment number and the problem number in the upper-right corner of each sheet. Staple all sheets together. For the coding problems, place all programs in a directory named FullNameHW03 – zip it and upload to the appropriate drop box. FullName refers to your full name (e.g., JaneDoeHW03.zip).
Problem 1 (computer)
Write a program named FullName1.sce that generates a plot of the function
y= f (x )=(x+2)2 /(3 x+1) over the range 1≤x ≤2 . Assume x is the “input” and y is the
“output.” Include a grid, x and y labels, and a title, “Input-Output Relation” with your choice of fonts and sizes. Aim for a visually appealing graphic that would be suitable for use in a professional report or presentation.
Problem 2 (computer)
Write a program named FullName2.sce that plots the functions y=sin( x) , y=sin(2 x) ,
y=sin(3 x) and y=sin(4 x ) over the range −2 π≤ x≤2 π . Use different line types and line
colors for the different functions. Include a grid, x,y labels and “EE221 Assignment 3 Problem 2” as the title. Look up the legend() command in the Help Browser, and use it to add a legend describing the various curves.
Problem 3 (computer)
Read the Help Browser documentation on the subplot() command. Then write a program named FullName3.sce that uses this command to generate a two-by-two array of plots showing the functions
y=e− x , y=e− x/ 2 , y=e− x/ 3 , y=e− x/ 4
over the range 0≤x≤4 .
Problem 4 (computer)
Write a program named FullName3.scethat uses the surf command to plot the function
f (x , y )=sin( x2+ y2 )
over the domain −3≤x≤3 , −3≤ y≤3 . Assume that x is “longitude,” y is “latitude” and z is “surface elevation.” Make sure that the surface is geometrically accurate (scaled equally along all three axes).
2016-08-22
EE 221, Summer 2015, Assignment 03 (Plotting and animation) 2 / 3
Problem 5 (computer)
Write a program named FullName5.sce that generates 100 frames animating the function
−x2
y (x ,t )=1+1t e(1+t)2
for −10≤x≤10 and 0≤t ≤10 .
2016-08-22
EE 221, Summer 2015, Assignment 03 (Plotting and animation) 3 / 3
2016-08-22
GET ALL YOUR ACADEMIC HELP AT ESSAYLINK.NET