home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / sm30a.zip / SYMBMATH.H15 < prev    next >
Text File  |  1993-11-07  |  3KB  |  88 lines

  1.                     3.3.6  Switch 
  2.     The switch sets or changes the switch status. The switch status
  3. is unchanged in memory until the switch is assigned by the new value.
  4.  
  5. ----------------------------------------------------------------------
  6. Switch                   Action
  7.  
  8. output:=math             output form is math symbol notation, this is
  9.                  default.
  10. output:=basic            output form is BASIC format.
  11. output:=fortran          output form is FORTRAN format.
  12. output:=prolog           output form is Prolog format (internal form).
  13. output:=off              not display output.
  14. output:=on               the same as ouput:=basic
  15.  
  16. lowercase:=on            convert letters into the lower-case letters.
  17. lowercase:=off           not convert letters into the lower-case letters,
  18.              this is default.
  19.  
  20. numeric:=on              convert numbers to floating-point numbers.
  21. numeric:=off             not convert numbers to floating-point numbers,
  22.              this is default.
  23.  
  24. expand:=on               expansion. e.g. c*(a+b) to c*a+c*b.
  25. expand:=off              disable expansion, this is default.
  26.  
  27. expandexp:=on            expand exponent. e.g. c^(a+b) to c^a*c^b.
  28. expandexp:=off           disable exponent expansion, this is default.
  29. ----------------------------------------------------------------------
  30.  
  31.         3.3.6.1.  Output Switch
  32.     When the switch output:=math, the output displays the math symbol
  33. notation (e.g. π). 
  34.     When the switch output:=basic, the output form is the BASIC
  35. language format. 
  36.     When the switch output:=fortran, the output form is the FORTRAN
  37. language format. 
  38.     The default switch is output:=math.
  39.     The output switch only changes the output format, neither affects
  40. the internal format nor the calculation.
  41.  
  42.     Example 3.3.6.1
  43.     In the Input window, you type
  44. inte(pi*sin(x)^2,x)
  45.     You see the display of your input in the Output window as
  46.  
  47.  ⌠ π sin(x)^2 dx
  48.  
  49. --------------------------------------
  50. Math symbol             Typing
  51.  
  52. π                       pi
  53. ⌠ f(x) dx               inte(f(x),x)
  54. √x                      sqrt(x)
  55. a b                     a*b
  56. -------------------------------------
  57.  
  58.         
  59.         3.3.6.2  Case Switch
  60.     When the switch lowercase := on, all letters are converted into
  61. the lower-case letters so the upper- and lower- case letters are the 
  62. same, e.g. EXP(x) is the same as exp(x).
  63.  
  64.  
  65.         3.3.6.3  Numeric Switch
  66.         Example.
  67. IN:  1/2
  68. OUT: 1/2
  69. IN:  numeric:=on
  70. IN:  1/2
  71. OUT: 0.5
  72.  
  73.         3.3.6.4 Expand Switch
  74.     Example.
  75. IN:  a*(b+c)
  76. OUT: a (b + c)
  77. IN:  expand:=on
  78. IN:  a*(b+c)
  79. OUT: a b + a c
  80.  
  81.         3.3.6.5 ExpandExp Switch
  82.         Example.
  83. IN:  exp(a+b)
  84. OUT: e^(a + b)
  85. IN:  expandexp:=on
  86. IN:  exp(a+b)
  87. OUT: e^a e^b
  88.