File: rvexample2.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 (61 lines) | stat: -rw-r--r-- 1,528 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<HTML>
<HEAD>
<TITLE>Example 2</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><A NAME="rvexample2"></A>
<font size="+3" color="green"><B>Example 2</B></font></P>

<TABLE border="0" width="591">
<TR>
<TD width=50% valign="center">Suppose ASCII file DUM.DAT is as follows:</TD>
<TD width=50%><pre>
1  23.7   0.1000E-5
2 -31.4   0.2000E-3
3  9.09   0.3000E-1
4  10.001 0.4000E+1
5  -2.0   0.5000E+2
6  30.2   0.6000E+3</pre>
</TD></TR>
</TABLE>

<p><CODE><font color="blue">READ DUM.DAT X Y</font></CODE></P>

<TABLE border="0" width="591">
<TR>
<TD width="15%" valign="top">results in:</TD>
<TD width="85%" valign="top"><CODE>
X = [ 1; 2; 3; 4; 5; 6 ]<br />
Y = [ 23.7; -31.4; 9.09; 10.001; -2.0; 30.2]</CODE>
</TD></TR>
</TABLE>

<P><CODE><font color="blue">READ DUM.DAT\3 X Y</font></CODE></P>

<TABLE border="0" width="591">
<TR>
<TD width="15%" valign="top">results in:</TD>
<TD width="85%"><CODE>
X = [ 3; 4; 5; 6 ]<br />
Y = [ 9.09; 10.001; -2.0; 30.2 ]</CODE>
</TD></TR>
</TABLE>

<P><CODE><font color="blue">READ DUM.DAT\[2:4] X/3 Y</font></CODE></P>

<TABLE border="0" width="591">
<TR>
<TD width="15%" valign="top">results in:</TD>
<TD width="85%"><CODE>
X = [ .0002; .03; 4.0 ]<br />
Y = [ -31.4; 9.09; 10.001 ]</CODE>
</TD></TR>
</TABLE>
<P>
 <a href="rvexample1.htm"><img src="../../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">Example 1</font></a><br />
 <a href="rvexample3.htm"><img src="../../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">Example 3</font></a></P>
</BODY>
</HTML>