This repository was archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 180
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Proposal: Math Lib is missing some APIs. #413
Copy link
Copy link
Closed
Labels
Area-APIIssue concerns the API design of a library, such as style guide or design principles adherence.Issue concerns the API design of a library, such as style guide or design principles adherence.Kind-EnhancementNew feature or requestNew feature or requestPkg-StandardIssue relates to the Microsoft.Quantum.Standard package.Issue relates to the Microsoft.Quantum.Standard package.Resolution-DoneIssue closed because work item completed.Issue closed because work item completed.
Milestone
Description
(This is the original proposal text. See the updated version of this proposal below)
I propose (to the Q# API Design Review Board) to add to the Q# API the following missing calls to support the Math library.
@Inline()
function NAN() : Double {
body intrinsic;
}
@Inline()
function IsNan(d: Double) : Bool {
body intrinsic;
}
@Inline()
function INFINITY() : Double {
body intrinsic;
}
@Inline()
function IsInf(d: Double) : Bool {
body intrinsic;
}
@Inline()
function IsNegativeInfinity(d : Double) : Bool {
body intrinsic;
}
Currently they are needed to implement the Log() math function.
More details:
Discussion
Possible Implementation
timothywsage
Metadata
Metadata
Assignees
Labels
Area-APIIssue concerns the API design of a library, such as style guide or design principles adherence.Issue concerns the API design of a library, such as style guide or design principles adherence.Kind-EnhancementNew feature or requestNew feature or requestPkg-StandardIssue relates to the Microsoft.Quantum.Standard package.Issue relates to the Microsoft.Quantum.Standard package.Resolution-DoneIssue closed because work item completed.Issue closed because work item completed.