Quantity#
- class sycomore.Quantity#
Quantity in the SI system.
- __abs__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Return a quantity with the absolute value of the magnitude
- __add__(*args, **kwargs)#
Overloaded function.
__add__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
Addition of compatible quantities
__add__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
Addition of compatible quantities
- __ceil__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Quantity with the smallest integer magnitude not less than the magnitude
- __divmod__(self: object, arg0: object) object #
- __eq__(*args, **kwargs)#
Overloaded function.
__eq__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> bool
Test whether magnitudes and dimensions are equal
__eq__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Test whether magnitudes and dimensions are equal
__eq__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Test whether magnitudes and dimensions are equal
- __float__(self: sycomore._sycomore.Quantity) float #
Convert to a scalar
- __floor__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Quantity with the largest integer magnitude not greater than the magnitude
- __floordiv__(*args, **kwargs)#
Overloaded function.
__floordiv__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
__floordiv__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
- __ge__(*args, **kwargs)#
Overloaded function.
__ge__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> bool
Compare the magnitude of two compatible quantities
__ge__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
__ge__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
- __gt__(*args, **kwargs)#
Overloaded function.
__gt__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> bool
Compare the magnitude of two compatible quantities
__gt__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
__gt__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
- __hash__(self: sycomore._sycomore.Quantity) int #
- __iadd__(*args, **kwargs)#
Overloaded function.
__iadd__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
In-place addition of a compatible quantity
__iadd__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
In-place addition of a compatible quantity
- __imod__(*args, **kwargs)#
Overloaded function.
__imod__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
In-place floating-point modulo
__imod__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
In-place floating-point modulo
- __imul__(*args, **kwargs)#
Overloaded function.
__imul__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
In-place multiplication
__imul__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
In-place multiplication
- __init__(self: sycomore._sycomore.Quantity, arg0: float, arg1: sycomore._sycomore.Dimensions) None #
- __int__(self: sycomore._sycomore.Quantity) int #
- __isub__(*args, **kwargs)#
Overloaded function.
__isub__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
In-place subtraction of a compatible quantity
__isub__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
In-place subtraction of a compatible quantity
- __itruediv__(*args, **kwargs)#
Overloaded function.
__itruediv__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
In-place division
__itruediv__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
In-place division
- __le__(*args, **kwargs)#
Overloaded function.
__le__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
__le__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> bool
Compare the magnitude of two compatible quantities
__le__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
- __lt__(*args, **kwargs)#
Overloaded function.
__lt__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
__lt__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> bool
Compare the magnitude of two compatible quantities
__lt__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Compare the magnitude of two compatible quantities
- __mod__(*args, **kwargs)#
Overloaded function.
__mod__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
Floating-point modulo
__mod__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
Floating-point modulo
- __mul__(*args, **kwargs)#
Overloaded function.
__mul__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
Multiplication
__mul__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
Multiplication
- __ne__(*args, **kwargs)#
Overloaded function.
__ne__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> bool
Test whether magnitudes or dimensions differ
__ne__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Test whether magnitudes or dimensions differ
__ne__(self: sycomore._sycomore.Quantity, arg0: float) -> bool
Test whether magnitudes or dimensions differ
- __neg__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Return a quantity with the opposite magnitude
- __pos__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Identity operator
- __pow__(self: sycomore._sycomore.Quantity, arg0: float) sycomore._sycomore.Quantity #
Raise a quantity to a power
- __radd__(self: sycomore._sycomore.Quantity, arg0: float) sycomore._sycomore.Quantity #
Addition of compatible quantities
- __repr__(self: sycomore._sycomore.Quantity) str #
String representation of a quantity
- __rfloordiv__(self: sycomore._sycomore.Quantity, arg0: float) sycomore._sycomore.Quantity #
- __rmul__(self: sycomore._sycomore.Quantity, arg0: float) sycomore._sycomore.Quantity #
Multiplication
- __round__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Round the magnitude of a quantity
- __rsub__(self: sycomore._sycomore.Quantity, arg0: float) sycomore._sycomore.Quantity #
Subtraction of compatible quantities
- __rtruediv__(self: sycomore._sycomore.Quantity, arg0: float) sycomore._sycomore.Quantity #
Division
- __sub__(*args, **kwargs)#
Overloaded function.
__sub__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
Subtraction of compatible quantities
__sub__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
Subtraction of compatible quantities
- __truediv__(*args, **kwargs)#
Overloaded function.
__truediv__(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
Division
__truediv__(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
Division
- __trunc__(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Truncate the magnitude of a quantity
- arccos(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- arccosh(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- arcsin(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- arcsinh(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- arctan(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- arctan2(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- arctanh(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- cbrt(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- ceil(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Quantity with the smallest integer magnitude not less than the magnitude
- convert_to(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) float #
Return the scalar value of the quantity converted to the given unit.
- cosh(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- property dimensions#
Dimensions of the quantity
- exp2(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- expm1(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- fabs(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Return a quantity with the absolute value of the magnitude
- floor(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Quantity with the largest integer magnitude not greater than the magnitude
- fmod(*args, **kwargs)#
Overloaded function.
fmod(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) -> sycomore._sycomore.Quantity
Floating-point modulo
fmod(self: sycomore._sycomore.Quantity, arg0: float) -> sycomore._sycomore.Quantity
Floating-point modulo
- hypot(self: sycomore._sycomore.Quantity, arg0: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- log10(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- log1p(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- log2(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- property magnitude#
The magnitude of the quantity, in SI units.
- rint(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Round the magnitude of a quantity
- sinh(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- sqrt(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- tanh(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
- trunc(self: sycomore._sycomore.Quantity) sycomore._sycomore.Quantity #
Truncate the magnitude of a quantity