home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
pcc
/
v08n03
/
math.exe
/
MAFIA2C.ZIP
/
MEM.HLP
< prev
next >
Wrap
Text File
|
1992-10-01
|
2KB
|
45 lines
╔═══════════════════════════════════════════╗ (C) Copyright 1986-1990
║ MEM.HLP - MEMFILE.DAT file manipulations ║ Zvi Shippony
╚═══════════════════════════════════════════╝ (818) 990-0134
Option 'M':
------------
The MEMFILE.DAT file is the media through which the various
programs in the MAFIA package communicate among themselves. This file
contain various results stored in it by the user's request. Each of the
record in the file could be access by any expression containing a
'variable' name: MEM(). Thus MEM(1) will be the value stored in the first
record, MEM(5) will be the value stored in the 5th record etc.
When choosing option 'M', a new screen appear with 4 new options:
0 - Initialize MEMFILE.DAT file
1 - List MEMFILE.DAT file content
2 - Edit MEMFILE.DAT file content
3 - Compress MEMFILE.DAT content (delete all zeros)
Option 0 - Empties the MEMFILE.DAT file.
Option 1 & 2 list & edit the content.
Option 3 - Compress the file by deleting all records with value = 0.0
$$$
EXAMPLE: Suppose you want to find out the area bounded by the function:
y=exp(-x) and the function y=(x-2.0)**2. Let F = exp(-x)-((x-2.0)**2).
The first step is to solve for the roots of F = 0.0 . After you have these,
you can integrate the function F between x1 & x2.
Suggested strategy:
Step 1. Plot the function exp(-x)-((x-2.0)**2). Get a good guess where
the roots (x1 & x2) are.
Step 2. Solve F = 0.0 twice, each time constrain the solution to be
around only one of the roots (x1 or x2). After each action, the
program will ask you if you want to store the result in memory,
say 'y' and remember what memory cell was assign to that
particular solution. (Say: MEM(1) for x1 and MEM(2) for x2).
Step 3. Integrate F between the limits: MEM(1),MEM(2).
That's all folks ...