These identifiers are used for goniometric calculations and hyperbolic ones. I recreated $sin $cos and $tan so that they calculate the argument before calculating the sine, cosine, or tangent from it.
alias angle2rad return $calc($1 /180 * $pi)
alias rad2angle return $calc($1 / $pi * 180)
alias e return 2.718281828459
alias sinh {
return $calc(($e ^ $iif($prop == deg, $angle2rad($1) , $1 ) - $e ^ (-1* $iif($prop == deg, $angle2rad($1) , $1 ))) /2)
}
alias cosh {
return $calc(($e ^ $iif($prop == deg, $angle2rad($1) , $1 ) + $e ^ (-1* $iif($prop == deg, $angle2rad($1) , $1 ))) /2)
}
alias tanh {
if ($prop == deg) {
return $calc($sinh($1).deg / $cosh($1).deg)
}
else return $calc($sinh($1) / $cosh($1))
}
alias coth {
if ($prop == deg) {
return $calc($cosh($1).deg / $sinh($1).deg)
}
else return $calc($cosh($1) / $sinh($1))
}
alias sech {
if ($prop == deg) {
return $calc(1/ $cosh($1).deg)
}
else return $calc($cosh($1) / $sinh($1))
}
alias csch {
if ($prop == deg) {
return $calc(1/ $sinh($1).deg)
}
else return $calc($sinh($1) / $sinh($1))
}
alias sin {
if ($prop == deg) {
return $sin($calc($1)).deg
}
else {
return $sin($calc($1))
}
}
alias cos {
if ($prop == deg) {
return $cos($calc($1)).deg
}
else return $cos($calc($1))
}
alias tan {
if ($prop == deg) {
return $tan($calc($1)).deg
}
else return $tan($calc($1))
}
alias cot {
if ($prop == deg) {
return $calc($cos($calc($1)).deg / $sin($calc($1)).deg)
}
else return $calc($cos($calc($1)) / $sin($calc($1)))
}
alias sec {
if ($prop == deg) {
return $calc(1/ $cos($1).deg)
}
else return $calc(1/ $cos($1))
}
alias csc {
if ($prop == deg) {
return $calc(1/ $sin($1).deg)
}
else return $calc(1/ $sin($1))
}