Figure 3.33 Plotting the surface of revolution for the curve
Example 3.13
Plot a graph of the surface of revolution obtained by rotating the
curve r(t) =< sin(t), t >, 0 < t<pi about the y-axis.
Solution
The graph of generating curve and the surface of revolution are
created using the following code: The plots appear in Figures 3.32
and 3.33.
>> t = 0:pi/100:pi;
>> r = sin(t);
>> plot (r,t)
>> cylinder(r,15)
>> shading interp
3.9 Function Plotters
In order to plot a function, you must know the ranges of the variables in the function. The func-
tion can then be evaluated at each point ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.