File: parametric.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (39 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<HTML>
<HEAD>
<TITLE>Plot parametric functions</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<p>
 Plot <code>y = sin(x)</code> for <code>-10 &lt; x &lt; 10</code> with the axes
 reversed, i.e., <code>y</code> as the horizontal axis and <code>x</code> as the
 vertical axis.</p>
<P>
 <font color="blue"><pre>
 generate x -10,,10 100
 set xlabel 'sin(x)'
 set ylabel 'x'
 graph sin(x) x
 </pre></font></P>
<P>
 <img src="parametric1.gif"></P>
<P>
 Plot <code>(x(t),y(t))</code> for <code>0 &lt; t &lt; 20</code>, where
 <code>x(t) = exp(-0.1*t)*cos(t)</code> and <code>y(t) = exp(-0.1*t)*sin(t)</code>.</P>
<P>
 <font color="blue"><pre>
 generate t 0,,20 100
 set xlabel 'e&lt;^&gt;-0.1*t&lt;_&gt;cos(t)'
 set ylabel 'e&lt;^&gt;-0.1*t&lt;_&gt;sin(t)'
 graph exp(-0.1*t)*cos(t) exp(-0.1*t)*sin(t)
 </pre></font></P>
<P>
 <img src="parametric2.gif"></P>
<P>
 <a href="contourdensity.htm"><img src="../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">Display array data as contours and density plot</font></a><br />
 <a href="writedata.htm"><img src="../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">Write data to a file</font></a>
</P>
</BODY>
</HTML>