home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
SYMBMATH.H15
< prev
next >
Wrap
Text File
|
1993-11-07
|
3KB
|
88 lines
3.3.6 Switch
The switch sets or changes the switch status. The switch status
is unchanged in memory until the switch is assigned by the new value.
----------------------------------------------------------------------
Switch Action
output:=math output form is math symbol notation, this is
default.
output:=basic output form is BASIC format.
output:=fortran output form is FORTRAN format.
output:=prolog output form is Prolog format (internal form).
output:=off not display output.
output:=on the same as ouput:=basic
lowercase:=on convert letters into the lower-case letters.
lowercase:=off not convert letters into the lower-case letters,
this is default.
numeric:=on convert numbers to floating-point numbers.
numeric:=off not convert numbers to floating-point numbers,
this is default.
expand:=on expansion. e.g. c*(a+b) to c*a+c*b.
expand:=off disable expansion, this is default.
expandexp:=on expand exponent. e.g. c^(a+b) to c^a*c^b.
expandexp:=off disable exponent expansion, this is default.
----------------------------------------------------------------------
3.3.6.1. Output Switch
When the switch output:=math, the output displays the math symbol
notation (e.g. π).
When the switch output:=basic, the output form is the BASIC
language format.
When the switch output:=fortran, the output form is the FORTRAN
language format.
The default switch is output:=math.
The output switch only changes the output format, neither affects
the internal format nor the calculation.
Example 3.3.6.1
In the Input window, you type
inte(pi*sin(x)^2,x)
You see the display of your input in the Output window as
⌠ π sin(x)^2 dx
--------------------------------------
Math symbol Typing
π pi
⌠ f(x) dx inte(f(x),x)
√x sqrt(x)
a b a*b
-------------------------------------
3.3.6.2 Case Switch
When the switch lowercase := on, all letters are converted into
the lower-case letters so the upper- and lower- case letters are the
same, e.g. EXP(x) is the same as exp(x).
3.3.6.3 Numeric Switch
Example.
IN: 1/2
OUT: 1/2
IN: numeric:=on
IN: 1/2
OUT: 0.5
3.3.6.4 Expand Switch
Example.
IN: a*(b+c)
OUT: a (b + c)
IN: expand:=on
IN: a*(b+c)
OUT: a b + a c
3.3.6.5 ExpandExp Switch
Example.
IN: exp(a+b)
OUT: e^(a + b)
IN: expandexp:=on
IN: exp(a+b)
OUT: e^a e^b