File: plotvectors.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 (28 lines) | stat: -rw-r--r-- 773 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
<HTML>
<HEAD>
<TITLE>Add and plot vectors</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<p>
 Add two vectors, <code>u = (3,0,1,4,2,6,4)</code> and <code>v = (1,2,3,4,5,6,7)</code>,
 each with 7 elements, then plot the values of the result.</P>
<P>
 <CODE><font color="blue">
 u = [3;0;1;4;2;6;4]<br>
 v = [1:7]<br>
 graph u+v</font></CODE></P>
<P>
 or</P>
<P>
 <CODE><font color="blue">graph [3;0;1;4;2;6;4]+[1:7]</font></CODE></P>
<P>
 <IMG SRC="plotvectors.gif"></P>
<P>
 <a href="matrices.htm"><img src="../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">Define matrices (2-d arrays)</font></a><br />
 <a href="eigen.htm"><img src="../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">Eigenvalues and eigenvectors</font></a>
</P>
</BODY>
</HTML>