Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/4th/lib/sinhcosh.4th

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


\ 4tH library - FSINH FCOSH FTANH - Copyright 2008 J.L. Bezemer
\ You can redistribute this file and/or modify it under
\ the terms of the GNU General Public License

[UNDEFINED] fsinh [IF]
[UNDEFINED] fexp [IF] include lib/fexp.4th [THEN]

: (e^x) fdup fexp fswap fnegate fexp ;
: fsinh (e^x) f- 2 s>f f/ ;
: fcosh (e^x) f+ 2 s>f f/ ;
: ftanh fdup f+ fexp 1 s>f fover fover f- frot frot f+ f/ ;

[DEFINED] 4TH# [IF] hide (e^x) [THEN]
[THEN]

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.