Learn R Programming

hadron (version 3.1.2)

CExp: Cosh Or Sinh Build Out Of Two Exps

Description

Evaluates $$f(x) = \frac{1}{2}(\exp(-m(T-x))\pm\exp(-m x))$$ for given mass \(m\), vector \(x\) and time extent \(T\). This form is better usable in \(\chi^2\) fitting than cosh or sinh.

Usage

CExp(m, Time, x, sign = 1)

Arguments

m

mass value

Time

Time extent

x

vector of values on which to evaluate the function

sign

with sign=1 cosh is evaluated, with sign=-1 sinh

Value

vector \(f(x)\)

Examples

Run this code
# NOT RUN {
m <- 0.1
Time <- 48
x <- seq(0, 48, 1)
CExp(m=m, Time=Time, x=x)
# }

Run the code above in your browser using DataLab