Skip to main content
Ctrl+K

celeries documentation

  • Studying equilibria in a resonant chain
  • celeries.series
  • celeries.perham
  • celeries.perham3pla
  • celeries.mmr
    • celeries.birkhoff
    • celeries.ellipseries
    • celeries.laplace
    • celeries.mpfrac
    • celeries.prime
  • GitLab
  • Studying equilibria in a resonant chain
  • celeries.series
  • celeries.perham
  • celeries.perham3pla
  • celeries.mmr
  • celeries.birkhoff
  • celeries.ellipseries
  • celeries.laplace
  • celeries.mpfrac
  • celeries.prime
  • GitLab

Section Navigation

  • celeries.mpfrac.getctx
  • celeries.mpfrac.iscomplex
  • celeries.mpfrac.isfloat
  • celeries.mpfrac.ismp
  • celeries.mpfrac.isnumber
  • celeries.mpfrac.setctx
  • celeries.mpfrac.smartdiv
  • celeries.mpfrac.smartpower
  • celeries.mpfrac.toctx
  • celeries.mpfrac.Fraction
    • celeries.mpfrac.Fraction.as_integer_ratio
    • celeries.mpfrac.Fraction.conjugate
    • celeries.mpfrac.Fraction.from_decimal
    • celeries.mpfrac.Fraction.from_float
    • celeries.mpfrac.Fraction.from_number
    • celeries.mpfrac.Fraction.is_integer
    • celeries.mpfrac.Fraction.limit_denominator
  • celeries.mpfrac.SmartComplex
    • celeries.mpfrac.SmartComplex.conj
    • celeries.mpfrac.SmartComplex.conjugate
  • celeries.mpfrac

celeries.mpfrac#

Functions

getctx()

iscomplex(x)

isfloat(x)

ismp(x)

isnumber(x)

setctx(ctx)

smartdiv(a, b)

Divide a by b and try to express the result as a rational number (Fraction) when possible.

smartpower(a, b)

Raise a to power b and try to express the result as an integer or a rational number (Fraction) when possible.

toctx(x)

Classes

Fraction([numerator, denominator])

SmartComplex(real, imag)

previous

celeries.laplace.rec_b

next

celeries.mpfrac.getctx

This Page

  • Show Source

© Copyright 2016-2025, Jean-Baptiste Delisle.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.