| Anonymous | Login | Signup for a new account | 2013-05-24 04:25 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0004170 | OCaml | Incoming | public | 2006-11-25 14:53 | 2012-11-23 18:46 | ||||||
| Reporter | Richard Jones | ||||||||||
| Assigned To | garrigue | ||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | assigned | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.09.2 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0004170: pi constant | ||||||||||
| Description | The stdlib should (IMHO) define a pi constant in Pervasives. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0007499) garrigue (manager) 2012-06-01 10:15 |
My standard code for pi is acos(-1.) Is this too long? |
|
(0007501) Richard Jones (reporter) 2012-06-01 11:23 |
Since you ask ... Is acos(-1.) the most accurate pi considering either the IEEE representation or the longer internal representation used by x86? I know that glibc defines this constant carefully so that the most accurate pi is used. (glibc also provides long-double -- 128 bit -- variants but I guess we can't use those in OCaml). |
|
(0008355) warwick (reporter) 2012-10-29 13:58 |
I suggested a similar thing in issue 005173. I think having a predefined value "pi" is a lot clearer than having to write acos(-1.) ... or acos(-.1.) |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2006-11-25 14:53 | Richard Jones | New Issue | |
| 2007-11-10 13:14 | xleroy | Status | new => acknowledged |
| 2012-06-01 10:15 | garrigue | Note Added: 0007499 | |
| 2012-06-01 10:15 | garrigue | Assigned To | => garrigue |
| 2012-06-01 10:15 | garrigue | Status | acknowledged => feedback |
| 2012-06-01 11:23 | Richard Jones | Note Added: 0007501 | |
| 2012-06-01 11:23 | Richard Jones | Status | feedback => assigned |
| 2012-10-29 13:58 | warwick | Note Added: 0008355 | |
| Copyright © 2000 - 2011 MantisBT Group |