home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
pcc
/
v08n03
/
math.exe
/
ALGED21.ZIP
/
ALGED.DAT
< prev
next >
Wrap
Text File
|
1995-01-26
|
1KB
|
56 lines
;
; this is a comment
; this is an input file for ALGED
; the formulae are in postfix notation
; valid operators are + - * / ^
; functions must be arity prefixed, e.g. f(x,g(a,b,c)) would be
; x a b c 3 @g 2 @f
;
; The following are some sample expressions and equations
;
x 5 2 x * + * 2 - 3 x + / 2 x * - 1 + 13 =
;
x 2 3 / - 3 ^
;
x 2 ^ 2 - x 1 + * x 3 ^ x 2 ^ + 2 x * - 2 - =
;
a x 2 ^ ^ a 2 x * ^ * a / a x 1 + ^ /
;
a -3 ^ b 7 ^ * a 2 ^ b 4 ^ * / -2 ^ a 10 ^ b 6 ^ / =
;
x 3 ^ x 2 ^ - 7 - x 5 ^ 4 x 4 ^ * + 8 x 3 ^ * - 4 x 2 ^ * - 35 x * - 21 +
x 2 ^ 5 x * + 3 - / =
;
5 x 2 ^ * 13 x * + 6 - 5 x * 2 - x 3 + * =
;
r x 6 ^ * s x 5 ^ * + t x 4 ^ * + u x 3 ^ * + v x 2 ^ * + w x * + y +
x 4 ^ b x 3 ^ * + c x 2 ^ * + d x * + e + /
;
3 x 2 ^ * 5 x * y * + 2 y 2 ^ * - x 2 y * + /
;
1 x -2 ^ - x -1 ^ 1 - / -1 x - x / =
;
; solve for x and y in each of the following pairs
;
y x 3 ^ =
y 4 x * 3 - =
;
y x 4 ^ =
y 2 x * x 3 ^ - =
;
x 2 ^ y * 9 =
y x 1 - 2 ^ =
;
x 2 ^ x y * - y 1 + =
x y * x + 4 y 2 ^ * =
;
a x 2 ^ * b x * y * + c y 2 ^ * + 0 =
x y 1 + =
;
; Solve these simultaneous equations for x,y,z in terms of a,b,c
;
5 x * y + z + a =
x 2 y * + z + b =
x y + 3 z * + c =
;