Specification for a symbolic numerical quantity.
|
__init__(self,
subjectToken,
specStr='
' ,
specType=None,
includeProtected=True,
treatMultiRefs=True,
preserveSpace=False,
ignoreSpecial=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__combine(self,
other,
opstr,
reverseorder=0) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
difference(self,
other)
Show differences in comparison to another QuantSpec. |
source code
|
|
|
isvector(self)
Is the quantity spec of the form [a,b,c] |
source code
|
|
|
fromvector(self,
ix=None)
Turn the QuantSpec's specification of a vector to a list of the
element's specifications. |
source code
|
|
|
simplify(self)
Simplify expression *IN PLACE*, but do not substitute terms from
other quantities or reduce constants such as Pi to a floating point
number. |
source code
|
|
|
|
|
eval(self,
*scopearg,
**defs)
Evaluate expression, in an optional scope dictionary (defaults to
locals). |
source code
|
|
|
_eval(self,
eval_type,
*scopearg,
**defs)
Internal helper function for eval. |
source code
|
|
|
|
|
mapNames(self,
nameMap)
Can pass a dictionary or a symbolMapClass instance to this method,
but it will convert it internally to a symbolMapClass. |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|