POV-Ray : Newsgroups : povray.unix : Some notes about Cygwin/MinGW compilation : Re: Some notes about Cygwin/MinGW compilation Server Time
19 May 2024 07:30:19 EDT (-0400)
  Re: Some notes about Cygwin/MinGW compilation  
From: Christoph Hormann
Date: 4 Nov 2002 13:19:44
Message: <3DC6BA40.3802BE06@gmx.de>
ABX wrote:
> 
> Oh, I forgot one thing more. There are missed asinh, acosh and atanh functions
> in plain MinGW. I had to add somewhere:
> 
> #if defined( __MINGW32__ ) && defined( MINGW_MISSED_FEATURES_PATCH )
>   inline DBL asinh(DBL val){return (DBL)log(val+sqrt(val*val+1));}
>   inline DBL acosh(DBL val){return (DBL)log(val+sqrt(val-1.0)*sqrt(val+1.0));}
>   inline DBL atanh(DBL val){return (DBL) 1/2*log(val+1)-1/2*log(1-val);}
> #endif

No, just use:

#define NEED_INVHYP 1

:-)

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 02 Nov. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.