Arith: Methods for Function Arith in package Jordan

Description Usage Arguments Details Value Author(s) Examples

Description

Methods for Arithmetic functions for jordans: +, -, *, /, ^

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

Arguments

z,e1,e2

Jordan objects or numeric vectors

n

Integer for powers

...

Further arguments (ignored)

x,y

Numeric vectors, Jordan objects in independent form

Details

The package implements the Arith group of S4 generics so that idiom like A + B*C works as expected with jordans.

Functions like jordan_inverse() and jordan_plus_jordan() are low-level helper functions. The only really interesting operation is multiplication; functions like jordan_prod_jordan().

Names are implemented and the rules are inherited (via onion::harmonize_oo() and onion::harmonize_on()) from rbind().

Value

generally return jordans

Author(s)

Robin K. S. Hankin

Examples

1
2
3
a <- rspin()
a[1] <- a[2]*7
a

jordan documentation built on April 8, 2021, 5:06 p.m.