numbers |
'integer' — integer numbers
'rational' — rational numbers
'vpareal' — variable-precision floating-point
real numbers
'complex' — complex numbers
'real' — real numbers, including
'integer' , 'rational' , and
'vpareal'
'number' — numbers, including
'integer' , 'rational' ,
'vpareal' , 'complex' , and
'real'
|
isSymType(sym(2),'integer')
isSymType(sym(1/2),'rational')
isSymType(vpa(0.5),'vpareal')
isSymType(vpa(1i),'complex')
isSymType([sym(1/2) vpa(0.5)],'real')
isSymType([vpa(1i) sym(1/2)],'number')
|
constants | 'constant' — symbolic mathematical constants,
including 'number' | isSymType([sym(pi) vpa(1i)],'constant') |
symbolic math functions | 'vpa' , 'sin' ,
'exp' , and so on — topmost symbolic math functions in
symbolic expressions | isSymType(vpa(sym(pi)),'vpa') |
unassigned symbolic functions |
'F' , 'g' , and so on — function
name of an unassigned symbolic function
'symfun' — unassigned symbolic functions
|
syms F(x); isSymType(F(x+2),'F')
syms g(x); isSymType(g(x),'symfun')
|
arithmetic operators |
'plus' — addition operator +
and subtraction operator -
'times' — multiplication operator
* and division operator /
'power' — power or exponentiation operator
^ and square root operator
sqrt
|
syms x y; isSymType(2*x + y,'plus')
syms x y; isSymType(x*y,'times')
syms x y; isSymType(x^(y+2),'power')
|
variables | 'variable' — symbolic variables | isSymType(sym('x'),'variable') |
units | 'units' — symbolic units | isSymType(symunit('m'),'units') |
expressions | 'expression' — symbolic expressions, including all of
the preceding symbolic types | isSymType(sym('x')+1,'expression') |
logical expressions |
'or' — logical OR operator
|
'and' — logical AND operator
&
'not' — logical NOT operator
~
'xor' — logical exclusive-OR operator
xor
'logicalconstant' — symbolic logical constants
symtrue and symfalse
'logicalexpression' — logical expressions,
including 'or' , 'and' ,
'not' , 'xor' ,
symtrue and symfalse
|
syms x y; isSymType(x|y,'or')
syms x y; isSymType(x&y,'and')
syms x; isSymType(~x,'not')
syms x y; isSymType(xor(x,y),'xor')
isSymType(symtrue,'logicalconstant')
syms x y;
isSymType(~x|y,'logicalexpression')
|
equations and inequalities |
'eq' — equality operator
==
'ne' — inequality operator
~=
'lt' — less-than operator <
or greater-than operator >
'le' — less-than-or-equal-to operator
<= or greater-than-or-equal-to operator
>=
'equation' — symbolic equations and inequalities,
including 'eq' , 'ne' ,
'lt' , and 'le'
|
syms x; isSymType(x==2,'eq')
syms x; isSymType(x~=1,'ne')
syms x; isSymType(x>0,'lt')
syms x; isSymType(x<=2,'le')
syms x; isSymType([x>0 x~=1],'equation')
|
unsupported symbolic types | 'unsupported' — unsupported symbolic
types
| |