NAME

Sidef::Types::Number::Mod

DESCRIPTION

This class implements ...

SYNOPSIS

var a = Mod(13, 19)

a += 15         # Mod(9, 19)
a *= 99         # Mod(17, 19)
a /= 17         # Mod(1, 19)

say a           # Mod(1, 19)

INHERITS

Inherits methods from:

* Sidef::Types::Number::Number

METHODS

!

a ! b

Returns the

Aliases: factorial

!=

a != b

Returns the

Aliases: ne

&

a & b

Returns the

Aliases: and

*

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: lt

<<

a << b

Returns the

Aliases: lsft, shift_left

<=>

a <=> b

Returns the

Aliases: cmp

==

a == b

Returns the

Aliases: eq

>

a > b

Returns the

Aliases: gt

>>

a >> b

Returns the

Aliases: rsft, shift_right

^

a ^ b

Returns the

Aliases: xor

|

a | b

Returns the

Aliases: or

a ≤ b

Returns the

Aliases: <=, le

a ≥ b

Returns the

Aliases: >=, ge

abs

x.abs

Returns the

chebyshevt

x.chebyshevt(n)

Returns the

Aliases: chebyshevT

chebyshevu

x.chebyshevu(n)

Returns the

Aliases: chebyshevU

chinese

*values.chinese

Returns the

cyclotomic

x.cyclotomic(n)

Returns the

dump

x.dump

Returns the

eval

x.eval(v)

Returns the

fib

x.fib

Returns the

Aliases: fibonacci

inv

x.inv

Returns the

is_inf

self.is_inf

Returns the

is_mone

x.is_mone

Returns the

is_nan

self.is_nan

Returns the

is_neg

self.is_neg

Returns the

is_ninf

self.is_ninf

Returns the

is_one

x.is_one

Returns the

is_pos

self.is_pos

Returns the

is_real

self.is_real

Returns the

is_zero

x.is_zero

Returns the

lucas

x.lucas

Returns the

lucasu

x.lucasu(P, Q)

Returns the

Aliases: lucasU

lucasv

x.lucasv(P, Q)

Returns the

Aliases: lucasV

modulus

self.modulus

Returns the

neg

x.neg

Returns the

new

self.new

Returns the

Aliases: call

norm

self.norm

Returns the

pretty

x.pretty

Returns the

re

self.re

Returns the

Aliases: real

sqr

x.sqr

Returns the

sqrt

x.sqrt

Returns the

to_n

self.to_n

Returns the

Aliases: lift

to_s

x.to_s

Returns the

znorder

x.znorder

Returns the

Aliases: multiplicative_order