Skip to content

Commit 82547c8

Browse files
chore: add structured package data for math/base/special/sin
PR-URL: #7985 Ref: #7924 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 3091a38 commit 82547c8

File tree

1 file changed

+78
-1
lines changed

1 file changed

+78
-1
lines changed

lib/node_modules/@stdlib/math/base/special/sin/package.json

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,82 @@
6363
"trigonometry",
6464
"radians",
6565
"angle"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/base@v1.0",
70+
"base_alias": "sin",
71+
"alias": "sin",
72+
"pkg_desc": "compute the sine",
73+
"desc": "computes the sine",
74+
"short_desc": "sine",
75+
"parameters": [
76+
{
77+
"name": "x",
78+
"desc": "input value (in radians)",
79+
"type": {
80+
"javascript": "number",
81+
"jsdoc": "number",
82+
"c": "double",
83+
"dtype": "float64"
84+
},
85+
"domain": [
86+
{
87+
"min": "-infinity",
88+
"max": "infinity"
89+
}
90+
],
91+
"rand": {
92+
"prng": "random/base/uniform",
93+
"parameters": [
94+
-10,
95+
10
96+
]
97+
},
98+
"example_values": [
99+
0,
100+
0.5236,
101+
0.7854,
102+
1.5708,
103+
1.0472,
104+
2.3562,
105+
3.1416,
106+
4.7124,
107+
6.2832,
108+
-0.5236,
109+
-0.7854,
110+
-1.0472,
111+
-1.5708,
112+
-2.3562,
113+
-3.1416,
114+
7.854,
115+
-7.854,
116+
0.1,
117+
-0.1,
118+
3.5
119+
]
120+
}
121+
],
122+
"output_policy": "real_floating_point_and_generic",
123+
"returns": {
124+
"desc": "sine",
125+
"type": {
126+
"javascript": "number",
127+
"jsdoc": "number",
128+
"c": "double",
129+
"dtype": "float64"
130+
}
131+
},
132+
"keywords": [
133+
"sin",
134+
"sine",
135+
"trig",
136+
"trigonometry",
137+
"radians"
138+
],
139+
"extra_keywords": [
140+
"math.sin"
141+
]
142+
}
143+
}
67144
}

0 commit comments

Comments
 (0)