Also log will throw a DomainErrror in Julia if you give it a negative argument. That is another check and might prevent some optimizations.
onsdag 18. februar 2015 21.36.12 UTC+1 skrev Stefan Karpinski følgende: > > What system are you on? And what libm are you using? > > On Wed, Feb 18, 2015 at 3:31 PM, Stefan Karpinski <[email protected] > <javascript:>> wrote: > >> Depends on how fast your system libm is – and how accurate. There's a >> tradeoff. >> >> On Wed, Feb 18, 2015 at 3:07 PM, Rohan Fernando <[email protected] >> <javascript:>> wrote: >> >>> >>> >>> The log and exponential functions in Julia are about five times slower >>> than in C++. Is this reasonable? >>> >> >> >
