{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw2 - CSC 113 Homework Assignment 2 PLOTS Assigned Due 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 113 Homework Assignment 2 PLOTS! Assigned September 20, 2010; Due September 27, 2010. 1. Basic function plots: (a) Plot the function f ( x ) = e - x over the interval 0 x 10. ( Hint: in M ATLAB , e - x is expressed as exp(-x) .) (b) Plot the function f ( x ) = e - x cos(5 x ) over the interval 0 x 2 π . (c) Plot tan - 1 ( x ) over the interval - 4 π x 4 π . (d) Plot log 10 ( x ) over the interval 0 . 01 x 5. (e) Plot 5 cos( x ) over the interval - 5 x 5. ( Hint: the M ATLAB function nthroot will be useful here.) (f) Plot round(10cos( x )) over the interval - 4 π x 4 π . (g) Plot the first-order Bessel function of the first kind, J 1 ( x ), from 0 x 10. Type help bessel to guide you. (h) Plot sin(1 + x 2 ) over the interval 0 x 10. 2. A nice example of a function that would be difficult to graph without a computer or calculator is f ( x ) = x ( x x ) - ( x x ) x . (a) Plot f ( x ) in the range 0 x 2. (b) Plot y = 0 . 7 x - 1 . 4 for 0 x 2 in the same figure.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}