Formula plotting-special symbols
From Algebra.Com's Help
Revision as of 10:25, 8 July 2005 by 64.94.157.1 (talk)
Click here for examples to see how special symbols are used. Examples are accompanied by source code and are rather self explanatory.
Special symbols refer to math elements that are displayed by locating formula elements in peculiar ways. Regular functions like sin(x) are not mentioned here. Only things that are plotted in a special ways, like integrals and logarithms, are discussed here.
- Sums are entered using a "sum" function
sum( from, to, expression ) <-- sum with limits sum( expression ) <-- sum without limits
Example:
e=sum( i=0, N, 1/i! ) sum( 1/i ) = infinity
- Integrals are similar to sums and are entered using the 'int' symbol
int( expression, dx, from, to ) <- integral with limits int( expression, dx ) <- integral without limits (undetermined)
Example:
int( 1/x^2, dx, 1, infinity ) int( e^(x^2/2), dx )
- greek letters are entered using their common English names. Lowercase names mean lowercase greek letters, uppercase names mean uppercase greek letters. Example: epsilon, EPSILON, pi, PI. See examples link in the first paragraph.
- logarithms are entered using either base and power, or just power; Examples:
log( 2, 8 ) = 3 log( xy ) = log( x ) + log( y )
- square roots are entered using 'sqrt'. Example
sqrt( b^2-4ac )
- matrices ere entered using the 'matrix' symbol:
matrix( dimX, dimY, elements... )
dimX and dimY are dimensions of the matrix, after that there should be dimX*dimY elements, in rows.
For example, 2x3 matrix
1 2 3 4 5 6
would be entered as
matrix( 2, 3, 1, 2, 3, 4, 5, 6 )
(note that newlines in formulas are allowed and are ignored by my system).