On Sat, 17 May 2003 15:09:09 +0200
Peter Rolf
I have problems using the hyperbolic functions sinh and cosh (MetaFun manual page 204) in metapost. A simple call of sinh (with valid parameter)
ct:= sinh(3) ;
the following definition in mp-tool.mp vardef sinh primary x = save xx ; xx = exp xx ; (xx-1/xx)/2 enddef should be vardef sinh primary x = save xx ; xx = exp x ; (xx-1/xx)/2 enddef until Hans has fixed the problem you may use \startMPinclusions vardef sinh primary x = ((exp x) - ( exp (-x)))/2 enddef ; vardef cosh primary x = ((exp x) + ( exp (-x)))/2 enddef ; \stopMPinclusions or if you prefer Hans' math definitions \startMPinclusions 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 ; \stopMPinclusions Jens