home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
tutor
/
l4p180
< prev
next >
Wrap
Text File
|
1990-07-15
|
2KB
|
50 lines
╔════════════════════════════════════════════════════╗
║ Lesson 4 Part 180 F-PC 3.5 Tutorial by Jack Brown ║
╚════════════════════════════════════════════════════╝
┌──────────────────────────────────────────────┐
│ Some examples of the square root operator. │
└──────────────────────────────────────────────┘
First we use SQRT which takes a 32 bit argument and leaves
a 16 bit square root.
256. SQRT . <enter> 16 ok
20000. SQRT . <enter> 140 ok
2000000. SQRT . <enter> 1414 ok
Next we use .SQRT which takes a 16-bit number and displays its
square root to two decimal places.
3 .SQRT <enter> 1.72 ok
49 .SQRT <enter> 7.00 ok
10 .SQRT <enter> 3.16 ok
Below is a sample run of the new and improved polynomial program.
We will use the first set of test data given at the beginning of
Lesson 4 Part 15.
POLY
Enter number of data points. > 4
Point X Y
1 > 8 > 4
2 > 6 > 1
3 > 2 > 1
4 > 5 > 4
AREA = 10.5
PERIMETER = 14.84 ok
If you have trouble with this problem don't worry about it.
If everything seems easy then you are not learning anything!
Give it you best attempt and then ask for help if you need it and
we will provide you with some hints.
Well... dear students, that just about wraps up Lesson 4.
We did want to look at F-PC's memory map (a map of where important
system variables and data structures are kept) but we will wait until
next time.
This is the end of Lesson 4.