
=encoding utf8

=head1 NAME

Sidef::Types::Number::Polynomial

=head1 DESCRIPTION

This class implements ...

=head1 SYNOPSIS

    var a = Polynomial(5)                   # monomial: x^5
    var b = Polynomial([1,2,3,4])           # x^3 + 2*x^2 + 3*x + 4
    var c = Polynomial(5 => 3, 2 => 10)     # 3*x^5 + 10*x^2

=head1 INHERITS

Inherits methods from:

       * Sidef::Types::Number::Number

=head1 METHODS

=head2 !=

    a != b

Returns the

Aliases: I<ne>

=cut

=head2 %

    a % b

Returns the

Aliases: I<mod>

=cut

=head2 *

    a * b

Returns the

Aliases: I<mul>

=cut

=head2 **

    a ** b

Returns the

Aliases: I<pow>

=cut

=head2 +

    a + b

Returns the

Aliases: I<add>

=cut

=head2 ++

    a ++ b

Returns the

Aliases: I<inc>

=cut

=head2 -

    a - b

Returns the

Aliases: I<sub>

=cut

=head2 --

    a -- b

Returns the

Aliases: I<dec>

=cut

=head2 /

    a / b

Returns the

Aliases: I<÷>, I<div>

=cut

=head2 //

    a // b

Returns the

Aliases: I<idiv>, I<idiv_ceil>, I<idiv_floor>, I<idiv_round>, I<idiv_trunc>

=cut

=head2 <

    a < b

Returns the

Aliases: I<lt>

=cut

=head2 <=>

    a <=> b

Returns the

Aliases: I<cmp>

=cut

=head2 ==

    a == b

Returns the

Aliases: I<eq>

=cut

=head2 >

    a > b

Returns the

Aliases: I<gt>

=cut

=head2 ≤

    a ≤ b

Returns the

Aliases: I<E<lt>=>, I<le>

=cut

=head2 ≥

    a ≥ b

Returns the

Aliases: I<E<gt>=>, I<ge>

=cut

=head2 abs

    x.abs

Returns the

=cut

=head2 binomial

    n.binomial(k)

Returns the

=cut

=head2 ceil

    x.ceil

Returns the

=cut

=head2 coeff

    x.coeff(key)

Returns the

=cut

=head2 coeffs

    x.coeffs

Returns the

=cut

=head2 cont

    x.cont

Returns the

Aliases: I<content>

=cut

=head2 deg

    x.deg

Returns the

Aliases: I<degree>

=cut

=head2 derivative

    x.derivative

Returns the

=cut

=head2 divmod

    x.divmod(y)

Returns the

=cut

=head2 dump

    x.dump

Returns the

=cut

=head2 eval

    x.eval(value)

Returns the

=cut

=head2 exponents

    x.exponents

Returns the

=cut

=head2 float

    x.float

Returns the

=cut

=head2 floor

    x.floor

Returns the

=cut

=head2 gcd

    x.gcd(y)

Returns the

=cut

=head2 gcdext

    x.gcdext(y)

Returns the

=cut

=head2 height

    x.height

Returns the

=cut

=head2 inv

    x.inv

Returns the

=cut

=head2 invmod

    x.invmod(m)

Returns the

=cut

=head2 is_inf

    x.is_inf

Returns the

=cut

=head2 is_mone

    x.is_mone

Returns the

=cut

=head2 is_nan

    x.is_nan

Returns the

=cut

=head2 is_ninf

    x.is_ninf

Returns the

=cut

=head2 is_one

    x.is_one

Returns the

=cut

=head2 is_real

    x.is_real

Returns the

=cut

=head2 is_squarefree

    x.is_squarefree

Returns the

=cut

=head2 is_zero

    x.is_zero

Returns the

=cut

=head2 lcm

    x.lcm(y)

Returns the

=cut

=head2 leading_coeff

    x.leading_coeff

Returns the

Aliases: I<leading_coefficient>

=cut

=head2 leading_monomial

    x.leading_monomial

Returns the

=cut

=head2 leading_term

    x.leading_term

Returns the

=cut

=head2 lift

    x.lift

Returns the

=cut

=head2 neg

    x.neg

Returns the

=cut

=head2 new

    self.new

Returns the

Aliases: I<call>

=cut

=head2 newton_method

    f.newton_method(x, df)

Returns the

=cut

=head2 norm

    self.norm

Returns the

=cut

=head2 powmod

    x.powmod(n, m)

Returns the

=cut

=head2 pretty

    x.pretty

Returns the

=cut

=head2 prim_part

    x.prim_part

Returns the

Aliases: I<primpart>, I<primitive_part>

=cut

=head2 rat

    x.rat

Returns the

=cut

=head2 rat_approx

    x.rat_approx

Returns the

=cut

=head2 re

    x.re

Returns the

Aliases: I<real>

=cut

=head2 roots

    f.roots

Returns the

=cut

=head2 round

    x.round(r)

Returns the

=cut

=head2 sgn

    x.sgn

Returns the

=cut

=head2 sqr

    x.sqr

Returns the

=cut

=head2 squarefree_part

    x.squarefree_part

Returns the

=cut

=head2 to_n

    x.to_n

Returns the

=cut

=head2 to_poly

    self.to_poly

Returns the

=cut

=head2 to_s

    x.to_s

Returns the

Aliases: I<stringify>

=cut
