Returns energetic sum or difference of values
Arguments
- x
is first value or vector
- y
is second value or vector
- operator
is 1 for sum and -1 for difference
Value
vector of values contain energetic sum or difference
Examples
# Calculate energetic sum or difference of values
dbsum(x = 55, y = 33, operator = 1)
#> [1] 55.02732
dbsum(x = c(55 , 66), y = c(45, 50), operator = 1)
#> [1] 55.41393 66.10774
dbsum(x = c(70 , 68), y = c(55, 66), operator = -1)
#> [1] 69.86045 63.67077