sech
sech(x)
Compute the hyperbolic secant of x
Examples
julia> sech(0.5)
1.139493927324549
julia> sech(2)
0.2658022288340797
julia> sech(-1)
1.5430806348152437
julia> sech(0)
1.0
Common mistake example:
julia> sech("hello")
ERROR: MethodError: no method matching sech(::String)
In this example, the input provided to sech
is a string instead of a number. The sech
function only accepts numeric inputs, so make sure to pass valid numeric values to it.
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.