The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sidef::Types::Number::Quaternion

DESCRIPTION

This class implements ...

SYNOPSIS

    var a = Quaternion(1,2,3,4)
    var b = Quaternion(5,6,7,8)

    say a+b     #=> Quaternion(6, 8, 10, 12)
    say a-b     #=> Quaternion(-4, -4, -4, -4)
    say a*b     #=> Quaternion(-60, 12, 30, 24)
    say b*a     #=> Quaternion(-60, 20, 14, 32)
    say a/b     #=> Quaternion(35/87, 4/87, 0, 8/87)

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

a

    Quaternion.a()

Returns the

Aliases: re, real

abs

    Quaternion.abs()

Returns the

b

    Quaternion.b()

Returns the

c

    Quaternion.c()

Returns the

ceil

    Quaternion.ceil()

Returns the

conj

    Quaternion.conj()

Returns the

d

    Quaternion.d()

Returns the

dump

    Quaternion.dump()

Returns the

eval

    Quaternion.eval()

Returns the

float

    Quaternion.float()

Returns the

floor

    Quaternion.floor()

Returns the

inv

    Quaternion.inv()

Returns the

invmod

    Quaternion.invmod()

Returns the

is_coprime

    Quaternion.is_coprime()

Returns the

is_mone

    Quaternion.is_mone()

Returns the

is_one

    Quaternion.is_one()

Returns the

is_zero

    Quaternion.is_zero()

Returns the

neg

    Quaternion.neg()

Returns the

new

    Quaternion.new()

Returns the

Aliases: call

norm

    Quaternion.norm()

Returns the

parts

    Quaternion.parts()

Returns the

powmod

    Quaternion.powmod()

Returns the

reals

    Quaternion.reals()

Returns the

round

    Quaternion.round()

Returns the

sgn

    Quaternion.sgn()

Returns the

sqr

    Quaternion.sqr()

Returns the

stringify

    Quaternion.stringify()

Returns the

to_c

    Quaternion.to_c()

Returns the

Aliases: to_n

to_gauss

    Quaternion.to_gauss()

Returns the

to_s

    Quaternion.to_s()

Returns the