☰
Debian Codegraph
@
1.30.0+dfsg+~1.26.6-1
/
/
examples
/
prism-mata.html
☽
☼
examples/prism-mata.html
code
plain
raw
symbols
SCIP
Expat
2018 Lea Verou
debian/copyright
1
<
h2
>Full example</
h2
>
2
<
pre
><
code
>// Source: https://www.stata.com/manuals/m-1first.pdf page 12
3
numeric matrix tanh(numeric matrix u)
4
{
5
numeric matrix eu, emu
6
eu = exp(u)
7
emu = exp(-u)
8
return( (eu-emu):/(eu+emu) )
9
}</
code
></
pre
>