Math: Various logarithmic and circular functions for onions

Description Usage Arguments Details Author(s) Examples

Description

Various elementary functions for onions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20

Arguments

x

Object of class onion

base

In function log(), the base of the logarithm

Details

Standard math stuff. I am not convinced that the trig functions (sin() etc) have any value.

Author(s)

Robin K. S. Hankin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x <- roct()
exp(x+x) - exp(x)*exp(x) # zero to numerical precision

jj <- exp(log(x)/2)      # use sqrt() here
jj*jj-x                  #  also small


y <- roct()
exp(x+y) - exp(x)*exp(y) # some rules do not operate for onions



max(Mod(c(sin(asin(x))-x,asin(sin(x))-x)))   # zero to numerical precision

onion documentation built on Feb. 11, 2021, 9:06 a.m.