NAME
Sidef::Types::Number::Polynomial
DESCRIPTION
This class implements ...
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^2INHERITS
Inherits methods from:
* Sidef::Types::Number::NumberMETHODS
!=
a != bReturns the
Aliases: ne
%
a % bReturns the
Aliases: mod
*
a * bReturns the
Aliases: mul
**
a ** bReturns the
Aliases: pow
+
a + bReturns the
Aliases: add
++
a ++ bReturns the
Aliases: inc
-
a - bReturns the
Aliases: sub
--
a -- bReturns the
Aliases: dec
/
a / bReturns the
Aliases: ÷, div
//
a // bReturns the
Aliases: idiv, idiv_ceil, idiv_floor, idiv_round, idiv_trunc
<
a < bReturns the
Aliases: lt
<=>
a <=> bReturns the
Aliases: cmp
==
a == bReturns the
Aliases: eq
>
a > bReturns the
Aliases: gt
≤
a ≤ bReturns the
Aliases: <=, le
≥
a ≥ bReturns the
Aliases: >=, ge
abs
x.absReturns the
binomial
n.binomial(k)Returns the
ceil
x.ceilReturns the
coeff
x.coeff(key)Returns the
coeffs
x.coeffsReturns the
cont
x.contReturns the
Aliases: content
deg
x.degReturns the
Aliases: degree
derivative
x.derivativeReturns the
divmod
x.divmod(y)Returns the
dump
x.dumpReturns the
eval
x.eval(value)Returns the
exponents
x.exponentsReturns the
float
x.floatReturns the
floor
x.floorReturns the
gcd
x.gcd(y)Returns the
gcdext
x.gcdext(y)Returns the
height
x.heightReturns the
inv
x.invReturns the
invmod
x.invmod(m)Returns the
is_inf
x.is_infReturns the
is_mone
x.is_moneReturns the
is_nan
x.is_nanReturns the
is_ninf
x.is_ninfReturns the
is_one
x.is_oneReturns the
is_real
x.is_realReturns the
is_squarefree
x.is_squarefreeReturns the
is_zero
x.is_zeroReturns the
lcm
x.lcm(y)Returns the
leading_coeff
x.leading_coeffReturns the
Aliases: leading_coefficient
leading_monomial
x.leading_monomialReturns the
leading_term
x.leading_termReturns the
lift
x.liftReturns the
neg
x.negReturns the
new
self.newReturns the
Aliases: call
newton_method
f.newton_method(x, df)Returns the
norm
self.normReturns the
powmod
x.powmod(n, m)Returns the
pretty
x.prettyReturns the
prim_part
x.prim_partReturns the
Aliases: primpart, primitive_part
rat
x.ratReturns the
rat_approx
x.rat_approxReturns the
re
x.reReturns the
Aliases: real
roots
f.rootsReturns the
round
x.round(r)Returns the
sgn
x.sgnReturns the
sqr
x.sqrReturns the
squarefree_part
x.squarefree_partReturns the
to_n
x.to_nReturns the
to_poly
self.to_polyReturns the
to_s
x.to_sReturns the
Aliases: stringify