-
-
Notifications
You must be signed in to change notification settings - Fork 896
chore: add structured package data for packages in math/base/special
#8022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
13d377d
chore: add scaffold metadata
gunjjoshi 406202b
docs: add more examples
gunjjoshi 370c7f8
Merge branch 'develop' into metadata
gunjjoshi 1c090ce
chore: remove trailing zeros
kgryte 9eae014
chore: remove keywords which are too general
kgryte 49e6beb
docs: add keyword
kgryte 73ef635
style: remove trailing zeros
kgryte efd01e7
chore: remove keywords which are too general
kgryte fcb733b
style: remove trailing zero
kgryte 9f6e576
docs: update descriptions
kgryte 72d0534
style: remove trailing zeros
kgryte 7ae6e6d
chore: remove keywords which are too general
kgryte 52adf34
style: remove trailing zeros
kgryte cc61a74
chore: remove keywords which are too general
kgryte f471339
chore: add keyword
kgryte b95f91a
Apply suggestions from code review
kgryte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,86 @@ | |
"radians", | ||
"angle" | ||
] | ||
, | ||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "acsc", | ||
"alias": "acscf", | ||
"pkg_desc": "compute the arccosecant of a single-precision floating-point number", | ||
"desc": "computes the arccosecant of a single-precision floating-point number", | ||
"short_desc": "arccosecant", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "float", | ||
"dtype": "float32" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": "-infinity", | ||
"max": -1 | ||
}, | ||
{ | ||
"min": 1, | ||
"max": "infinity" | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
1.1, | ||
5.1 | ||
] | ||
}, | ||
"example_values": [ | ||
-5, | ||
-4.2, | ||
-3.7, | ||
-3.1, | ||
-2.6, | ||
-2.2, | ||
-1.7, | ||
-1.3, | ||
-1.1, | ||
-1.01, | ||
1.01, | ||
1.1, | ||
1.3, | ||
1.7, | ||
2.2, | ||
2.6, | ||
3.1, | ||
3.7, | ||
4.2, | ||
5 | ||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "arccosecant", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "float", | ||
"dtype": "float32" | ||
} | ||
}, | ||
"keywords": [ | ||
"acscf", | ||
kgryte marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"arccosecant", | ||
"cosecant", | ||
"inverse", | ||
"angle" | ||
], | ||
"extra_keywords": [ | ||
"math.asin" | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,92 @@ | |
"math.asinh", | ||
"asinh" | ||
] | ||
, | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "acsch", | ||
"alias": "acsch", | ||
"pkg_desc": "compute the hyperbolic arccosecant of a number", | ||
"desc": "computes the hyperbolic arccosecant of a number", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"short_desc": "hyperbolic arccosecant", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": "-infinity", | ||
"max": 0 | ||
}, | ||
{ | ||
"min": 0, | ||
"max": "infinity" | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
0.5, | ||
5.0 | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
] | ||
}, | ||
"example_values": [ | ||
-5.0, | ||
-3.7, | ||
-2.9, | ||
-2.1, | ||
-1.7, | ||
-1.3, | ||
-1.1, | ||
-0.7, | ||
-0.51, | ||
-0.25, | ||
0.25, | ||
0.51, | ||
0.7, | ||
1.1, | ||
1.3, | ||
1.7, | ||
2.1, | ||
2.9, | ||
3.7, | ||
5.0 | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "hyperbolic arccosecant", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
} | ||
}, | ||
"keywords": [ | ||
"acsch", | ||
"hyperbolic", | ||
"inverse", | ||
"cosecant", | ||
"csc", | ||
"arc", | ||
"arccosecant", | ||
"trig", | ||
"trigonometry", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"angle", | ||
"asinh" | ||
], | ||
"extra_keywords": [ | ||
"math.asinh" | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,88 @@ | |
"polyfill", | ||
"ponyfill" | ||
] | ||
, | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "asin", | ||
"alias": "asin", | ||
"pkg_desc": "compute the arcsine of a double-precision floating-point number", | ||
"desc": "computes the arcsine of a double-precision floating-point number", | ||
"short_desc": "arcsine", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value (in radians)", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": -1, | ||
"max": 1 | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
-1.0, | ||
1.0 | ||
] | ||
}, | ||
"example_values": [ | ||
-1.0, | ||
-0.95, | ||
-0.9, | ||
-0.85, | ||
-0.75, | ||
-0.66, | ||
-0.5, | ||
-0.33, | ||
-0.25, | ||
-0.11, | ||
0.0, | ||
0.11, | ||
0.25, | ||
0.33, | ||
0.5, | ||
0.66, | ||
0.75, | ||
0.85, | ||
0.9, | ||
0.95, | ||
1.0 | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "arcsine", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
} | ||
}, | ||
"keywords": [ | ||
"asin", | ||
"arcsine", | ||
"sine", | ||
"inverse", | ||
"trig", | ||
"trigonometry", | ||
"radians", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"angle", | ||
"polyfill", | ||
"ponyfill" | ||
], | ||
"extra_keywords": [ | ||
"math.asin" | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,4 +67,86 @@ | |
"radians", | ||
"angle" | ||
] | ||
, | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "asin", | ||
"alias": "asinf", | ||
"pkg_desc": "compute the arcsine of a single-precision floating-point number", | ||
"desc": "computes the arcsine of a single-precision floating-point number", | ||
"short_desc": "arcsine", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value (in radians)", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "float", | ||
"dtype": "float32" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": -1, | ||
"max": 1 | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
-1.0, | ||
1.0 | ||
] | ||
}, | ||
"example_values": [ | ||
-1.0, | ||
-0.95, | ||
-0.9, | ||
-0.85, | ||
-0.75, | ||
-0.66, | ||
-0.5, | ||
-0.33, | ||
-0.25, | ||
-0.11, | ||
0.0, | ||
0.11, | ||
0.25, | ||
0.33, | ||
0.5, | ||
0.66, | ||
0.75, | ||
0.85, | ||
0.9, | ||
0.95, | ||
1.0 | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "arcsine", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "float", | ||
"dtype": "float32" | ||
} | ||
}, | ||
"keywords": [ | ||
"asinf", | ||
kgryte marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"arcsine", | ||
"sine", | ||
"inverse", | ||
"trig", | ||
"trigonometry", | ||
"radians", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"angle" | ||
], | ||
"extra_keywords": [ | ||
"math.asin" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.