Skip to content

Commit 2ff3d13

Browse files
chore: add structured package data for math/base/special/cosd
PR-URL: #7963 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent 6b02e15 commit 2ff3d13

File tree

1 file changed

+79
-1
lines changed

1 file changed

+79
-1
lines changed

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

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,83 @@
6767
"cosine",
6868
"trig",
6969
"trigonometry"
70-
]
70+
],
71+
"__stdlib__": {
72+
"scaffold": {
73+
"$schema": "math/[email protected]",
74+
"base_alias": "cos",
75+
"alias": "cosd",
76+
"pkg_desc": "compute the cosine",
77+
"desc": "computes the cosine",
78+
"short_desc": "cosine",
79+
"parameters": [
80+
{
81+
"name": "x",
82+
"desc": "input value (in degrees)",
83+
"type": {
84+
"javascript": "number",
85+
"jsdoc": "number",
86+
"c": "double",
87+
"dtype": "float64"
88+
},
89+
"domain": [
90+
{
91+
"min": "-infinity",
92+
"max": "infinity"
93+
}
94+
],
95+
"rand": {
96+
"prng": "random/base/uniform",
97+
"parameters": [
98+
-360,
99+
360
100+
]
101+
},
102+
"example_values": [
103+
0,
104+
30,
105+
45,
106+
60,
107+
90,
108+
120,
109+
180,
110+
-30,
111+
-45,
112+
-60,
113+
-90,
114+
-120,
115+
-180,
116+
270,
117+
-270,
118+
360,
119+
-360,
120+
220,
121+
-80,
122+
-40
123+
]
124+
}
125+
],
126+
"output_policy": "real_floating_point_and_generic",
127+
"returns": {
128+
"desc": "cosine",
129+
"type": {
130+
"javascript": "number",
131+
"jsdoc": "number",
132+
"c": "double",
133+
"dtype": "float64"
134+
}
135+
},
136+
"keywords": [
137+
"cos",
138+
"cosd",
139+
"cosine",
140+
"trig",
141+
"trigonometry",
142+
"degrees"
143+
],
144+
"extra_keywords": [
145+
"math.cos"
146+
]
147+
}
148+
}
71149
}

0 commit comments

Comments
 (0)