microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cc20343d1b34e43e1bd16a5450e986fec5e70d20

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

library/math.qs

19lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4namespace 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}