diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-08-08 21:30:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-08-08 21:30:04 +0200 |
commit | 0e99988c85616897aa99e28c4f00d596d677f5ab (patch) | |
tree | 743d9039ab43aab9ad4e2881b47ce9e854986567 /metapost | |
parent | 96f283b0d4f0259b7d7d1c64d1d078c519fc84a6 (diff) | |
download | context-0e99988c85616897aa99e28c4f00d596d677f5ab.tar.gz |
2016-08-08 21:06:00
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mpiv/mp-tool.mpiv | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/metapost/context/base/mpiv/mp-tool.mpiv b/metapost/context/base/mpiv/mp-tool.mpiv index ae2ce3435..e57c703eb 100644 --- a/metapost/context/base/mpiv/mp-tool.mpiv +++ b/metapost/context/base/mpiv/mp-tool.mpiv @@ -375,6 +375,7 @@ vardef asinh primary x = ln(x+(x++1)) enddef ; vardef sinh primary x = save xx ; xx = exp x ; (xx-1/xx)/2 enddef ; vardef cosh primary x = save xx ; xx = exp x ; (xx+1/xx)/2 enddef ; +vardef tanh primary x = save xx ; xx = exp x ; (xx-1/xx)/(xx+1/xx) enddef ; %D Like mod, but useful for anglesl it returns (-.5d,+.5d] and is used %D in for instance mp-chem. |