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^2
INHERITS
Inherits methods from:
* Sidef::Types::Number::Number
METHODS
!=
a != b
Returns the
Aliases: ne
%
a % b
Returns the
Aliases: mod
*
a * b
Returns the
Aliases: mul
**
a ** b
Returns the
Aliases: pow
+
a + b
Returns the
Aliases: add
++
a ++ b
Returns the
Aliases: inc
-
a - b
Returns the
Aliases: sub
--
a -- b
Returns the
Aliases: dec
/
a / b
Returns the
Aliases: ÷, div
//
a // b
Returns the
Aliases: idiv, idiv_ceil, idiv_floor, idiv_round, idiv_trunc
<
a < b
Returns the
Aliases: lt
<=>
a <=> b
Returns the
Aliases: cmp
==
a == b
Returns the
Aliases: eq
>
a > b
Returns the
Aliases: gt
≤
a ≤ b
Returns the
Aliases: <=, le
≥
a ≥ b
Returns the
Aliases: >=, ge
abs
x.abs
Returns the
binomial
n.binomial(k)
Returns the
ceil
x.ceil
Returns the
coeff
x.coeff(key)
Returns the
coeffs
x.coeffs
Returns the
cont
x.cont
Returns the
Aliases: content
deg
x.deg
Returns the
Aliases: degree
derivative
x.derivative
Returns the
divmod
x.divmod(y)
Returns the
dump
x.dump
Returns the
eval
x.eval(value)
Returns the
exponents
x.exponents
Returns the
float
x.float
Returns the
floor
x.floor
Returns the
gcd
x.gcd(y)
Returns the
gcdext
x.gcdext(y)
Returns the
height
x.height
Returns the
inv
x.inv
Returns the
invmod
x.invmod(m)
Returns the
is_inf
x.is_inf
Returns the
is_mone
x.is_mone
Returns the
is_nan
x.is_nan
Returns the
is_ninf
x.is_ninf
Returns the
is_one
x.is_one
Returns the
is_real
x.is_real
Returns the
is_squarefree
x.is_squarefree
Returns the
is_zero
x.is_zero
Returns the
lcm
x.lcm(y)
Returns the
leading_coeff
x.leading_coeff
Returns the
Aliases: leading_coefficient
leading_monomial
x.leading_monomial
Returns the
leading_term
x.leading_term
Returns the
lift
x.lift
Returns the
neg
x.neg
Returns the
new
self.new
Returns the
Aliases: call
newton_method
f.newton_method(x, df)
Returns the
norm
self.norm
Returns the
powmod
x.powmod(n, m)
Returns the
pretty
x.pretty
Returns the
prim_part
x.prim_part
Returns the
Aliases: primpart, primitive_part
rat
x.rat
Returns the
rat_approx
x.rat_approx
Returns the
re
x.re
Returns the
Aliases: real
roots
f.roots
Returns the
round
x.round(r)
Returns the
sgn
x.sgn
Returns the
sqr
x.sqr
Returns the
squarefree_part
x.squarefree_part
Returns the
to_n
x.to_n
Returns the
to_poly
self.to_poly
Returns the
to_s
x.to_s
Returns the
Aliases: stringify