home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
tutor
/
scieqs13.lzh
/
EXAMPLE1
next >
Wrap
Text File
|
1988-10-19
|
613b
|
17 lines
!echo
; This file shows how expressions are evaluated in SCIEQS.
; An expression can be entered at the ">" prompt and evaluated.
2 + 3 * 4
; The answer is then displayed. Notice that the multiplication
; was completed before the addition because of the precedence rules.
; The answer can also be stored in variables and used later by
; refering to the variable names.
x = 2 + 3 * 4
y = sqrt(x) ;'y' gets the square root of 'x'
!list
; Because variable 'y' is defined in terms of variable 'x', changing
; variable 'x' will automatically change variable 'y'.
x = (2 + 3) * 4
!list
!noecho