This preview shows pages 1–3. Sign up to view the full content.
Homework 10 ( 411)
4. (Ch. 18, Problem 7)
Write a program
plotting.c
to plot function
f
(
x
) = 2
x
2
* sin(
x
) versus
x
when
x
varies within the range of 8.5 radian
≤
x
≤
8.5 radian using plotting function
plotxy()
.
5. (Ch.18, Problem 8) Write a program to plot functions
y
1 =
e
x
+
√
x
and
y
2 = 10sin(
x
) from
x
= 0 to
π
without
labels in both x and y axes. The plot shall have legends of
y1
and
y2
for the curves of these two functions
with 50 points for each curve.
6. (Ch. 18, Problem 9)
A projectile is fired into the air with an initial speed
v
o
of 35.0 m/s. Plot its trajectories for
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Documentinitial projection angles of
θ
o
= 15
°
, 30
°
, 45
°
, 60
°
, 75
°
, and 90
°
. Plot with 100 points for each curve in a single
plot. The trajectory can be expressed in XY coordinates using equations 5.3 and 5.4 in section 5.8. You may
use the following member function call
plot.border(PLOT_BORDER_LEFT, PLOT_OFF);
to remove the board on the left of the plot.
7. (Ch.19, Problem 4) Given
This is the end of the preview. Sign up
to
access the rest of the document.
 Fall '07
 Cheng

Click to edit the document details