home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
SYMBMATH.H61
< prev
next >
Wrap
Text File
|
1993-11-14
|
5KB
|
89 lines
8. Keywords
SymbMath has three versions: Shareware Version A, Student
Version B and Advanced Version C. The shareware version lacks the
solve(), trig (except sin(x) and cos(x)), and hyerbolic functions,
(lack 10% keywords) and the student version lacks the hyerbolic
functions (lack 5% keywords). You cannot input these lack functions
in shareware or student version.
Upper- and lower-case letters are different until the switch
lowercase is set to on (i.e. lowercase := on).
All keywords are lower-case letters until the switch lowercase
:= on.
There are two types of the keywords: internal and external.
The internal keywords have been compiled into the SymbMath system,
so you cannot change them. The external ones are in files, so you
can change their name or property. Usages of both types are the same.
The following only includes the internal and some external
keywords. You can define your own keyword and add your defined function.
If some keywords do not work, you should check whether or not the
libraries *.(x) are in the default directory.
8.1 Keywords in Topic Order
---------------------------------------------------------------------
1. Algebraic operators: +, -, *, /, ^, **, ().
2. Relational operators: ==, >, >=, <, <=, <>.
3. Assignments: :=
4. Equation: solve(x^2=1,x), solve([x+y=b,x-y=c], [x,y]), psolve(f(x), x),
nsolve(cos(x)=x,x), dsolve(y'(x)=f(x,y), y(x),x), =.
5. Comment: #.
6. Built-in constants: i, e, pi, inf, zero, constant, discont, c_inf,
undefined.
7. Built-in variables: last.
8. Logic operators: and, or, not(x).
9. Algebraic functions: -x, sqrt(x), n!, fac(n), mod(x,y), div(x,y),
random(x), expand(x), factor(x), factor(y,x), root(x,n).
10. Complex to real: re(x), im(x), abs(x), |x|, arg(x), sign(x).
11. Exponential functions: exp(x), ln(x), log10(x).
12. Trig functions: sin(x), cos(x), tan(x), csc(x), sec(x), cot(x),
asin(x), acos(x), atan(x), acot(x), asec(x), acsc(x), atan2(x,y).
13. Hyperbolic functions: sinh(x), cosh(x), tanh(x), csch(x), sech(x),
coth(x), asinh(x), acosh(x), atanh(x), acoth(x), acsch(x),
asech(x).
14. Special math functions: ei(x), ei(n,x), gamma(x), gamma(n,x), erf(x),
si(x), ci(x), li(x), li(n,x).
15. Defining functions: f(x_):=x^2, f(x_) := if(x>0 then x^2).
16. Defining procedures: f(x_):=block(p:=x^2,p,local(p))
17. Defining rules: log(x_ * y_) := log(x) + log(y).
18. Clear: clear(x), clear(f(x)), clear(a>0).
19. Calculus functions:
d(y,x), d(y,x,order), diff(y, x = x0), f'(x), inte(), ninte(),
subs(y, x = x0), lim(y, x = x0), nlim(y, x=x0), laplace(y,x),
sum(y, x,xmin,xmax,dx), partsum(y,x), infsum(y,x),
prod(y, x,xmin,xmax,dx), series(y,x), series(y,x,order).
20. Conversion functions:
ratio(x), round(x), trunc(x), nume(2/3), deno(2/3), table(),
number(x), string(x), term(a+b), mult(a*b), type(x).
21. Numeric computation: num(x), nsolve(), ninte(), nlim(), numeric:=on.
22. Test functions: isodd(x), iseven(x), isinteger(x), isratio(x),
isreal(x), iscomplex(x), isnumber(x), islist(x), isfree(y,x),
issame(x), islarger(a,b), isless(a,b), type(x)=="real".
23. Table: table(f, x,xmin,xmax,dx).
24. Arrays and array index: a[1]:=1, do(a[x]:=x, x,xmin,xmax,dx), a[1].
25. Lists and list index: [a,b], [list()], member([a],j), last[1].
26. Statistics: average(x), max(x), min(x), listsum(x), length(x).
27. Switches: numeric, output, expand, expandexp, lowercase,
:=, on, off, basic, fortran, prolog, math.
28. DOS Commands: system("dir").
29. Comma: , , from, to, step, then, else, until.
30. Assume: assume(a>0), isreal(x):=1.
31. Conditional: if(x>0 then x), if(x>0 then x else -x).
32. Loop: repeat(expr until x>5), do(expr, x,xmin,xmax,dx),
list(y,x,xmin,xmax).
33. Reading: readfile("file"), readchar, readline.
34. Writing: openfile("file"), closefile("file"), writes(x), null, block(),
newline.
35. Plot: plot(x^3,x), dotplot(x^3,x), polar(1+t,t).
36. Graph: graph, text, line(), lineto(x,y), linerel(dx,dy), ellipse(),
putpixel(x,y,color), moveto(x,y), moverel(dx,dy), arc(), getmaxx,
getmaxy, setcolor(white), setbkcolor(red), setviewport(),
setlinestyle(), settextstyle(font,dir,size), circle(), oval(),
settextjustify(hor,ver), getx, gety, getbkcolor, getcolor.
37. String: "123", concat(a,b), remove(b,ab), length(a), string(1),
reverse(x).
38. Getting parts: type(x), left(x), right(x), term(a+b), mult(), coef(),
coefall(), power(x^n), base(x^n), argue(x), sequence(x),
re(x), im(x), int(x), frac(x).
--------------------------------------------------------------------------