https://chapel-lang.org/docs/master/modules/standard/Math.html
https://github.com/chapel-lang/chapel/blob/master/modules/standard/Math.chpl All standard packages are implicitly included. Get Outlook for Android<https://aka.ms/ghei36> ________________________________ From: Damian McGuckin <[email protected]> Sent: Tuesday, March 5, 2019 5:57:01 PM To: Chapel-Sourceforge Subject: [Chapel-developers] Math Library - Low Priority Where does the Math library come from? I was thinking that it picks up GLIBC but I am not sure. Given the sub-normal IEEE 754 number 2^(-1044) cbrt(0x1.0p-1044) = 0x1.0p-340 (exactly) When I use my own cube root function which is done in a generic style, I get an exact answer as does C/C++. but under Chapel it returns an answer with a relative error of 0.5*epsilon I was curious where I should be looking. If Chapel is just using whatever is the latest version of the standard C library on a given machine, I will look in my test program. Also, there is no 'nextafter' routine in Chapel's math library, a.k.a. man nextafter but I can donate mine (done in Chapel) from my IEEE 754 project sometime soon. Thanks - Damian Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037 Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here Views & opinions here are mine and not those of any past or present employer _______________________________________________ Chapel-developers mailing list [email protected] https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fchapel-developers&data=02%7C01%7C%7Cc559278a3c7540008dcb08d6a1c0256c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636874243961977890&sdata=sZTyjEfrLfEMQhAIlhFK7jXFJvdVtVspIYx90ci1HK8%3D&reserved=0
_______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers
