type/suffixed
check for a symbol with a given suffix
Calling Sequence
Parameters
Description
Examples
type(x, suffixed(y))
type(x, suffixed(y, stype))
x
-
any expression
y
symbol, string, or set or list of either symbols or strings
stype
type
A call to type suffixed with one parameter checks whether a symbol or string x has the same type as y, and x begins with the characters of y.
With two parameters, x is checked to see if it has the same type of and begins with the characters of y and that the balance, when parsed, is of type stype.
If y is a set or list, then x is checked against each operand of y.
Note that x and "x" are considered to be of type suffixed(x) and suffixed("x"), respectively. Also note that parse will automatically simplify the balance, so "x6/2" and "x4!" is an "x" suffixed by the integers 3 and 24, respectively.
type⁡_Z1,suffixed⁡_Z,integer
true
type⁡x1.32,suffixed⁡x,float,integer
discont⁡tan⁡x,x
12⁢π+π⁢_Z1~
hastype⁡,suffixed⁡_B,_N,_NN,_Z,integer
dsolve⁡diff⁡y⁡t,t=y⁡t,y⁡t
y⁡t=c__1⁢ⅇt
hastype⁡,suffixed⁡_C,integer
type⁡x4/2,suffixed⁡x,integer
See Also
parse
Download Help Document