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 firstorder 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.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Fall '10
 PhillipRegali
 interval −4π

Click to edit the document details