microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
library/math.qs
19lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Quantum.Math { |
| 5 | |
| 6 | /// # Summary |
| 7 | /// Represents the ratio of the circumference of a circle to its diameter. |
| 8 | /// |
| 9 | /// # Ouptut |
| 10 | /// A double-precision approximation of the the circumference of a circle |
| 11 | /// to its diameter, $\pi \approx 3.14159265358979323846$. |
| 12 | /// |
| 13 | /// # See Also |
| 14 | /// - Microsoft.Quantum.Math.E |
| 15 | function PI() : Double { |
| 16 | return 3.14159265358979323846; |
| 17 | } |
| 18 | |
| 19 | } |