home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / pcc / v08n03 / math.exe / ALGED21.ZIP / ALGED.DAT < prev    next >
Text File  |  1995-01-26  |  1KB  |  56 lines

  1. ;
  2. ;  this is a comment
  3. ;  this is an input file for ALGED
  4. ;  the formulae are in postfix notation
  5. ;  valid operators are + - * / ^
  6. ;  functions must be arity prefixed, e.g. f(x,g(a,b,c)) would be
  7. ;     x a b c 3 @g 2 @f
  8. ;
  9. ;  The following are some sample expressions and equations
  10. ;
  11.  x 5 2 x * + * 2 - 3 x + / 2 x * - 1 + 13 =
  12. ;
  13.  x 2 3 / - 3 ^
  14. ;
  15.  x 2 ^ 2 - x 1 + * x 3 ^ x 2 ^ + 2 x * - 2 - =
  16. ;
  17.  a x 2 ^ ^ a 2 x * ^ * a / a x 1 + ^ /
  18. ;
  19.  a -3 ^ b 7 ^ * a 2 ^ b 4 ^ * / -2 ^ a 10 ^ b 6 ^ / =
  20. ;
  21.  x 3 ^ x 2 ^ - 7 - x 5 ^ 4 x 4 ^ * + 8 x 3 ^ * - 4 x 2 ^ * - 35 x * - 21 +
  22.   x 2 ^ 5 x * + 3 - / =
  23. ;
  24.  5 x 2 ^ * 13 x * + 6 - 5 x * 2 - x 3 + * =
  25. ;
  26.  r x 6 ^ * s x 5 ^ * + t x 4 ^ * + u x 3 ^ * + v x 2 ^ * + w x * + y +
  27.   x 4 ^ b x 3 ^ * + c x 2 ^ * + d x * + e + /
  28. ;
  29.  3 x 2 ^ * 5 x * y * + 2 y 2 ^ * - x 2 y * + /
  30. ;
  31.  1 x -2 ^ - x -1 ^ 1 - / -1 x - x / =
  32. ;
  33. ;  solve for x and y in each of the following pairs
  34. ;
  35.  y x 3 ^ =
  36.  y 4 x * 3 - =
  37. ;
  38.  y x 4 ^ =
  39.  y 2 x * x 3 ^ - =
  40. ;
  41.  x 2 ^ y * 9 =
  42.  y x 1 - 2 ^ =
  43. ;
  44.  x 2 ^ x y * - y 1 + =
  45.  x y * x + 4 y 2 ^ * =
  46. ;
  47.  a x 2 ^ * b x * y * + c y 2 ^ * + 0 =
  48.  x y 1 + =
  49. ;
  50. ;  Solve these simultaneous equations for x,y,z in terms of a,b,c
  51. ;
  52.  5 x * y + z + a =
  53.  x 2 y * + z + b =
  54.  x y + 3 z * + c =
  55. ;
  56.