MN1
Ruby
code posted
created at 10 Oct 08:57
Edit
|
Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 |
julia> function firs(x)
y=(e^x-e^(-x))/(e^x+e^(-x))
end
julia>
julia> firs(10)
0.9999999958776926
julia>
julia> firs(100)
1.0
julia>
julia> firs(1000)
NaN |
171 Bytes in 2 ms with coderay