- qspec. cast_sympy ( *args , as_sympy=True , dtype=float )[source]
-
Cast the arguments
argstosympyexpressions usingsympy.nsimplifyor to the specifieddtype.- Parameters:
-
- argssympy_scalar
The arguments.
- as_sympybool
Whether to cast the arguments to sympy expressions (
True) or todtype(False).- dtypeCallable[[Any], Any]
The type to use if
as_sympyisFalse.
- Returns:
-
- args_casttuple[Any, ...]
The cast arguments.