Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.cast_sympy  (  * args as_sympy = True dtype = 'float'  )[source]

Cast the arguments args to a sympy type (symbol) or the specified dtype.

Parameters:
argssympy_like

The arguments.

as_sympybool

Return the result as a symbol (True) or as a float (False).

dtypetype

The type to use if as_sympy == False.

Returns:
cast_argssympy_like

The cast arguments.

API navigation