-
-
Notifications
You must be signed in to change notification settings - Fork 896
chore: add structured package data for packages in math/base/special
#8052
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 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0c78f6a
chore: add structured package data
gunjjoshi e1d986d
docs: fix indentation
gunjjoshi ccf0e47
docs: update description
kgryte ce434f2
docs: update description
kgryte e545bb9
docs: update description
kgryte 979c2a4
chore: use smallest subnormal
kgryte c5e6531
docs: fix spelling
kgryte e3375f3
chore: use smallest subnormal
kgryte 4073d25
chore: use smallest subnormal
kgryte 5decbbb
chore: use smallest subnormal
kgryte 817df00
chore: use smallest subnormal
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,5 +66,80 @@ | |
"angle", | ||
"polyfill", | ||
"ponyfill" | ||
] | ||
], | ||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "cosh", | ||
"alias": "cosh", | ||
"pkg_desc": "compute the hyperbolic cosine of a double-precision floating-point number", | ||
"desc": "computes the hyperbolic cosine of a double-precision floating-point number", | ||
"short_desc": "hyperbolic cosine", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": "-infinity", | ||
"max": "infinity" | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
-50, | ||
50 | ||
] | ||
}, | ||
"example_values": [ | ||
-3.7, | ||
0.25, | ||
12.9, | ||
-0.81, | ||
5.4, | ||
-19.2, | ||
2.3, | ||
-7.1, | ||
0, | ||
33.8, | ||
-14.6, | ||
8.05, | ||
-0.003, | ||
1.7, | ||
-2.8, | ||
49.9, | ||
-26.3, | ||
6.6, | ||
-11.4, | ||
0.93 | ||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "hyperbolic cosine", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
} | ||
}, | ||
"keywords": [ | ||
"cosine", | ||
"cos", | ||
"hyperbolic" | ||
], | ||
"extra_keywords": [ | ||
"math.cosh" | ||
] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -64,5 +64,80 @@ | |
"trig", | ||
"trigonometry", | ||
"radians" | ||
] | ||
], | ||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "cosm1", | ||
"alias": "cosm1", | ||
"pkg_desc": "compute `cos(x) - 1` where `cos` is the cosine of a number (in radians)", | ||
"desc": "computes `cos(x) - 1` where `cos` is the cosine of a number (in radians)", | ||
"short_desc": "cosine minus one", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": "-infinity", | ||
"max": "infinity" | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
-50, | ||
50 | ||
] | ||
}, | ||
"example_values": [ | ||
-2.9, | ||
0.41, | ||
7.6, | ||
-0.37, | ||
3.2, | ||
-11.8, | ||
1.2, | ||
-6.4, | ||
0, | ||
9.7, | ||
-4.5, | ||
5.3, | ||
-0.02, | ||
1.9, | ||
-2.2, | ||
18.1, | ||
-13.6, | ||
2.8, | ||
-7.9, | ||
0.77 | ||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "cosine minus one", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
} | ||
}, | ||
"keywords": [ | ||
"cos", | ||
"cosm1", | ||
"cosine" | ||
], | ||
"extra_keywords": [ | ||
"math.cos" | ||
] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -63,5 +63,80 @@ | |
"trig", | ||
"trigonometry", | ||
"radians" | ||
] | ||
], | ||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "cospi", | ||
"alias": "cospi", | ||
"pkg_desc": "compute the cosine of a double-precision floating-point number times π", | ||
"desc": "computes the cosine of a double-precision floating-point number times π", | ||
"short_desc": "cosine of a number times π", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": "-infinity", | ||
"max": "infinity" | ||
} | ||
], | ||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
-50, | ||
50 | ||
] | ||
}, | ||
"example_values": [ | ||
-3.25, | ||
0.125, | ||
1.6, | ||
-0.45, | ||
2.75, | ||
-7.3, | ||
4.2, | ||
-5.8, | ||
0, | ||
9.1, | ||
-2.2, | ||
3.33, | ||
-0.01, | ||
0.5, | ||
-1.75, | ||
6.7, | ||
-4.9, | ||
8.8, | ||
-10.4, | ||
12.6 | ||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "function value", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
} | ||
}, | ||
"keywords": [ | ||
"cos", | ||
"cosine", | ||
"pi" | ||
], | ||
"extra_keywords": [ | ||
"math.cos" | ||
] | ||
} | ||
} | ||
} |
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,5 +66,89 @@ | |
"cosine", | ||
"trig", | ||
"trigonometry" | ||
] | ||
], | ||
"__stdlib__": { | ||
"scaffold": { | ||
"$schema": "math/[email protected]", | ||
"base_alias": "cot", | ||
"alias": "cot", | ||
"pkg_desc": "evaluate the cotangent of a double-precision floating-point number (in radians)", | ||
"desc": "evaluates the cotangent of a double-precision floating-point number (in radians)", | ||
"short_desc": "cotangent", | ||
"parameters": [ | ||
{ | ||
"name": "x", | ||
"desc": "input value", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
}, | ||
"domain": [ | ||
{ | ||
"min": "-infinity", | ||
"max": 0 | ||
}, | ||
{ | ||
"min": 0, | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"max": "infinity" | ||
} | ||
], | ||
kgryte marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"rand": { | ||
"prng": "random/base/uniform", | ||
"parameters": [ | ||
0.5, | ||
50 | ||
] | ||
}, | ||
"example_values": [ | ||
11.37, | ||
-29.07, | ||
5.47, | ||
-41.83, | ||
2.73, | ||
24.13, | ||
-6.74, | ||
39.72, | ||
-0.64, | ||
1.19, | ||
-14.62, | ||
13.64, | ||
-9.51, | ||
6.88, | ||
-18.46, | ||
0.53, | ||
-4.38, | ||
4.11, | ||
-2.27, | ||
19.82 | ||
] | ||
} | ||
], | ||
"output_policy": "real_floating_point_and_generic", | ||
"returns": { | ||
"desc": "cotangent", | ||
"type": { | ||
"javascript": "number", | ||
"jsdoc": "number", | ||
"c": "double", | ||
"dtype": "float64" | ||
} | ||
}, | ||
"keywords": [ | ||
"cot", | ||
"cotangent", | ||
"tan", | ||
"tangent", | ||
"sin", | ||
"sine", | ||
"cos", | ||
"cosine" | ||
], | ||
"extra_keywords": [ | ||
"math.tan" | ||
] | ||
} | ||
} | ||
} |
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.