function

sinh . math . sncode

VERSIONlatest This function computes the hyperbolic sine of a number.

SINH(1e)

NAME

sinh - This function computes the hyperbolic sine of a number.

SYNOPSIS

sinh(argument)

DESCRIPTION

This mathematical function allows the user to compute the hyperbolic sine of an argument defined between -infinity to infinity. This is not a periodic function, unlike its basis function: the sine function. It returns a value only in the 1st or the 3rd quadrant of the xy plane, meaning that if x<0, y<0, and if x>0, y>0. The sinh function is defined as sinh x = 0.5 * ( exp(x) - exp(-x)), and sinh(x)=-isin(ix).

PARAMETERS

number
Specify the number (float) used as argument for the sinh function.

RETURN

The sinh value of the argument.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

One can use this function with positive integers:

test(q(res={_{sinh(1);}}.),q(res=1.1752.));

With negative integers:

test(q(res={_{sinh(-1);}}.),q(res=-1.1752.));

Note that sinh(-x)=-sinh(x).

With big integers:

test(q(res={_{sinh(45);}}.),q(res=1.74671e+19.));

Note that the answer is a monstrous number. Since it is a hyperbolic function,
it goes to infinity really fast until sinh(inf)=inf.

With other variables:

test(q(res={_{
%include "/includes/extenso.sn";
a=PI;
sinh(a);
}}.),
q(res=11.5487.));

With another trigonometric function:

test(q(res={_{
%include "/includes/extenso.sn";
a=sin(0);
sinh(a);
}}.),
q(res=0.));

With an array:

test(q(res={_{sinh(1,0,-1);}}.),q(res=\[1.1752,0,-1.1752\].));

AUTHOR

Written by Caroline Laplante, <claplante@sednove.com>