-
-
Couldn't load subscription status.
- Fork 922
chore: add structured package data for math/base/special/tandf
#8279
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
kgryte
merged 6 commits into
stdlib-js:develop
from
manvith2003:math-base-special-tandf
Oct 28, 2025
+79
−1
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c3d8bd8
chore: add structured package data for math/base/special/tand
manvith2003 b39dcbd
chore: add structured package data for math/base/special/tandf
manvith2003 083fc3b
Remove 'tand' metadata from package.json
manvith2003 4438716
Modify example values in tandf package.json
manvith2003 ee81e05
Update keywords in package.json for tandf
manvith2003 8209145
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 |
|---|---|---|
|
|
@@ -64,5 +64,83 @@ | |
| "tangent", | ||
| "trig", | ||
| "trigonometry" | ||
| ] | ||
| ], | ||
| "__stdlib__": { | ||
| "scaffold": { | ||
| "$schema": "math/[email protected]", | ||
| "base_alias": "tandf", | ||
| "alias": "tandf", | ||
| "pkg_desc": "compute the tangent of a single-precision floating-point number (in degrees)", | ||
| "desc": "compute the tangent of a single-precision floating-point number (in degrees)", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "short_desc": "tangent", | ||
| "parameters": [ | ||
| { | ||
| "name": "x", | ||
| "desc": "input value (in degrees)", | ||
| "type": { | ||
| "javascript": "number", | ||
| "jsdoc": "number", | ||
| "c": "float", | ||
| "dtype": "float32" | ||
| }, | ||
| "domain": [ | ||
| { | ||
| "min": "-infinity", | ||
| "max": "infinity" | ||
| } | ||
| ], | ||
| "rand": { | ||
| "prng": "random/base/uniform", | ||
| "parameters": [ | ||
| -180, | ||
| 180 | ||
| ] | ||
| }, | ||
| "example_values": [ | ||
| 0, | ||
| 15, | ||
| 30, | ||
| 45, | ||
| 60, | ||
| 75, | ||
| 90, | ||
| -15, | ||
| -30, | ||
| -45, | ||
| -60, | ||
| -75, | ||
| -90, | ||
| 10, | ||
| -10, | ||
| 20, | ||
| -20, | ||
| 35, | ||
| -35, | ||
| 80 | ||
| ] | ||
| } | ||
| ], | ||
| "output_policy": "real_floating_point_and_generic", | ||
| "returns": { | ||
| "desc": "tangent", | ||
| "type": { | ||
| "javascript": "number", | ||
| "jsdoc": "number", | ||
| "c": "float", | ||
| "dtype": "float32" | ||
| } | ||
| }, | ||
| "keywords": [ | ||
| "tan", | ||
| "tanf", | ||
| "tand", | ||
| "tandf", | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "tangent", | ||
| "trig", | ||
| "trigonometry", | ||
| "degrees" | ||
| ], | ||
| "extra_keywords": [] | ||
kgryte marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| } | ||
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.