+
    WBi	                     R    R t R tR t ! R R]4      tR t]R8X  d
   ]! 4        R# R# )a  
Raw docstrings sample module.

Tests support for raw docstrings, which are necessary when docstrings contain
escape sequences.

E.g. TeX-maths:
@f[
  \exp(x) = \sum_{k=0}^{\infty} \frac{x^k}{k!}
@f]

Related to issue #8 [1].

[1]: https://github.com/Feneric/doxypypy/issues/8
c                     ^# )zCCalculate the square-root of four.

Returns:
    @f$ \sqrt{4} @f$.
 r       F/usr/lib/python3.14/site-packages/doxypypy/test/sample_rawdocstring.pysqrt4r      s     r   c                    ^V ,          # )zeInvert the given number.

Args:
    x:  Invert this number \f$x\f$.

Returns:
    @f$\frac{1}{x}@f$.
r   )xs   &r   invertr	      s     Q3Jr   c                   0   a  ] tR t^)t o RtR tR tRtV tR# )
Polynomiala.  Stores a polynomial.

Here, a polynomial is defined as a finite series of the form
@f[
  a_0 + a_1 x + a_2 x^2 + \cdots + a_N x^N,
@f]
where \f$ a_k \f$, for \f$k=0,\ldots,N\f$, are real coefficients, and
\f$N\f$ is the degree of the polynomial.

Attributes:
    coefficients:  A list of coefficients.
c                    Wn         R# )zInitialize a polynomial instance.

Args:
    coefficients:  A list of coefficients. Beginning with \f$a_0\f$,
                   and ending with \f$a_N\f$.
Ncoefficients)selfr   s   &&r   __init__Polynomial.__init__7   s
     )r   c                    R# )a   Find the real roots of the polynomial.

I.e. all real numbers @f$ x_i @f$ for which
\f[
  a_0 + a_1 x_i + a_2 {x_i}^2 + \cdots + a_N {x_i}^N = 0.
\f]

Returns:
    A list of all real roots, or an empty list if there are none.

\todo Implement this method.
Nr   )r   s   &r   
find_rootsPolynomial.find_roots@   s     	r   r   N)	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r   )   s     ) r   r   c                 J    \        . RO4      p \        V P                  4       R# )zDemonstrate polynomial class.N)       r      )r   printr   )ps    r   mainr#   P   s    < A	!..r   __main__N)r   r   r	   objectr   r#   r   r   r   r   <module>r&      s:   "	$ $N zF r   