unitbundle_Ops: Operations combining unitbundles and non-unitbundles

Description Usage Arguments Details

Description

Arithmetic and comparison operations can sometimes be done on a unitbundle and an object of another type. This is most important for raising a unitbundle e1 to a power e2, which actually requires that e2 be a number, not a unitbundle. Another useful feature of unitbundle operations is that operation on a unitbundle and a list is conducted elementwise over the entire list. See Details | Operations combining unitbundles and non-unitbundles.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'unitbundle,ANY'
Ops(e1, e2)

## S4 method for signature 'ANY,unitbundle'
Ops(e1, e2)

## S4 method for signature 'unitbundle,list'
Ops(e1, e2)

## S4 method for signature 'list,unitbundle'
Ops(e1, e2)

Arguments

e1

the first unitbundle (or other)

e2

the second unitbundle (or other)

Details

Operations combining unitbundles and non-unitbundles

Ops(e1,e2) - default

In general, if one of e1 and e2 is a unitbundle and the other is not, the non-unitbundle is replaced by an empty unitbundle and the operation proceeds.

Ops(e1,e2) - lists

If the non-unitbundle is a list, the operation is performed on the unitbundle and each element of the list.

e1^e2

If e1 is a unitbundle and e2 is numeric, the units in e1 are raised to the power in e2.


appling/unitted documentation built on May 10, 2019, 12:44 p.m.