Skip to content

Commit

Permalink
trying to use latex \cfrac
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Feb 21, 2025
1 parent f475f8e commit 9b0603a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sage/rings/power_series_ring_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1388,15 +1388,13 @@ cdef class PowerSeries(AlgebraElement):
r"""
Return the super delta continued fraction of ``self``.
This is a continued fraction of the following shape::
This is a continued fraction of the following shape:
v0 x^k0
--------------------------------------------------------
v1 x^(k0 + k1 + delta)
U1(x) - -------------------------------------------
v2 x^(k1 +k2 + delta)
U2(x) - -------------------------
U3(x) - ...
.. MATH::
\cfrac{v_0 x^{k_0}}{U_1(x) -
\cfrac{v_1 x^{k_0 + k_1 + \delta}{U_2(x) -
\cfrac{v_2 x^{k_0 + k_1 + k_2 + \delta}{U_3(x) - \cdots}}}}}
where each `U_j(x) = 1 + u_j(x) x`.
Expand Down Expand Up @@ -1429,6 +1427,8 @@ cdef class PowerSeries(AlgebraElement):
(1, 1, 3*q^2 + 2*q + 1),
(-4, 0, -q + 1)]
A Jacobi continued fraction::
sage: t = PowerSeriesRing(QQ, 't').gen()
sage: s = sum(factorial(k) * t**k for k in range(12)).O(12)
sage: s.super_delta_fraction(2)
Expand Down

0 comments on commit 9b0603a

Please sign in to comment.