home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / scieqs14.zip / EXAMPLE1 next >
Text File  |  1988-10-19  |  613b  |  17 lines

  1. !echo
  2. ; This file shows how expressions are evaluated in SCIEQS.
  3. ; An expression can be entered at the ">" prompt and evaluated.
  4. 2 + 3 * 4
  5. ; The answer is then displayed.  Notice that the multiplication
  6. ; was completed before the addition because of the precedence rules.
  7. ; The answer can also be stored in variables and used later by
  8. ; refering to the variable names.
  9. x = 2 + 3 * 4
  10. y = sqrt(x)          ;'y' gets the square root of 'x'
  11. !list
  12. ; Because variable 'y' is defined in terms of variable 'x', changing
  13. ; variable 'x' will automatically change variable 'y'.
  14. x = (2 + 3) * 4
  15. !list
  16. !noecho
  17.