Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.fraction  (  r  )[source]

Parameters:
rsympy.core.numbers.Rational | str

A sympy.Rational or a str with the signature "num/denom".

Returns:
outtuple[int, int]

the numerator and denominator of r.

API navigation