Skip to content

Commit 9bee6e1

Browse files
gunjjoshikgryte
andauthored
chore: add structured package data for packages in math/base/special
PR-URL: #8052 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent 30aa812 commit 9bee6e1

File tree

10 files changed

+821
-10
lines changed

10 files changed

+821
-10
lines changed

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

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,80 @@
6666
"angle",
6767
"polyfill",
6868
"ponyfill"
69-
]
69+
],
70+
"__stdlib__": {
71+
"scaffold": {
72+
"$schema": "math/[email protected]",
73+
"base_alias": "cosh",
74+
"alias": "cosh",
75+
"pkg_desc": "compute the hyperbolic cosine of a double-precision floating-point number",
76+
"desc": "computes the hyperbolic cosine of a double-precision floating-point number",
77+
"short_desc": "hyperbolic cosine",
78+
"parameters": [
79+
{
80+
"name": "x",
81+
"desc": "input value",
82+
"type": {
83+
"javascript": "number",
84+
"jsdoc": "number",
85+
"c": "double",
86+
"dtype": "float64"
87+
},
88+
"domain": [
89+
{
90+
"min": "-infinity",
91+
"max": "infinity"
92+
}
93+
],
94+
"rand": {
95+
"prng": "random/base/uniform",
96+
"parameters": [
97+
-50,
98+
50
99+
]
100+
},
101+
"example_values": [
102+
-3.7,
103+
0.25,
104+
12.9,
105+
-0.81,
106+
5.4,
107+
-19.2,
108+
2.3,
109+
-7.1,
110+
0,
111+
33.8,
112+
-14.6,
113+
8.05,
114+
-0.003,
115+
1.7,
116+
-2.8,
117+
49.9,
118+
-26.3,
119+
6.6,
120+
-11.4,
121+
0.93
122+
]
123+
}
124+
],
125+
"output_policy": "real_floating_point_and_generic",
126+
"returns": {
127+
"desc": "hyperbolic cosine",
128+
"type": {
129+
"javascript": "number",
130+
"jsdoc": "number",
131+
"c": "double",
132+
"dtype": "float64"
133+
}
134+
},
135+
"keywords": [
136+
"cosine",
137+
"cos",
138+
"hyperbolic"
139+
],
140+
"extra_keywords": [
141+
"math.cosh"
142+
]
143+
}
144+
}
70145
}

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

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,80 @@
6464
"trig",
6565
"trigonometry",
6666
"radians"
67-
]
67+
],
68+
"__stdlib__": {
69+
"scaffold": {
70+
"$schema": "math/[email protected]",
71+
"base_alias": "cosm1",
72+
"alias": "cosm1",
73+
"pkg_desc": "compute `cos(x) - 1` where `cos` is the cosine of a number (in radians)",
74+
"desc": "computes `cos(x) - 1` where `cos` is the cosine of a number (in radians)",
75+
"short_desc": "cos(x) - 1",
76+
"parameters": [
77+
{
78+
"name": "x",
79+
"desc": "input value",
80+
"type": {
81+
"javascript": "number",
82+
"jsdoc": "number",
83+
"c": "double",
84+
"dtype": "float64"
85+
},
86+
"domain": [
87+
{
88+
"min": "-infinity",
89+
"max": "infinity"
90+
}
91+
],
92+
"rand": {
93+
"prng": "random/base/uniform",
94+
"parameters": [
95+
-50,
96+
50
97+
]
98+
},
99+
"example_values": [
100+
-2.9,
101+
0.41,
102+
7.6,
103+
-0.37,
104+
3.2,
105+
-11.8,
106+
1.2,
107+
-6.4,
108+
0,
109+
9.7,
110+
-4.5,
111+
5.3,
112+
-0.02,
113+
1.9,
114+
-2.2,
115+
18.1,
116+
-13.6,
117+
2.8,
118+
-7.9,
119+
0.77
120+
]
121+
}
122+
],
123+
"output_policy": "real_floating_point_and_generic",
124+
"returns": {
125+
"desc": "result",
126+
"type": {
127+
"javascript": "number",
128+
"jsdoc": "number",
129+
"c": "double",
130+
"dtype": "float64"
131+
}
132+
},
133+
"keywords": [
134+
"cos",
135+
"cosm1",
136+
"cosine"
137+
],
138+
"extra_keywords": [
139+
"math.cos"
140+
]
141+
}
142+
}
68143
}

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

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,80 @@
6363
"trig",
6464
"trigonometry",
6565
"radians"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/[email protected]",
70+
"base_alias": "cospi",
71+
"alias": "cospi",
72+
"pkg_desc": "compute the cosine of a double-precision floating-point number times π",
73+
"desc": "computes the cosine of a double-precision floating-point number times π",
74+
"short_desc": "cosine of a number times π",
75+
"parameters": [
76+
{
77+
"name": "x",
78+
"desc": "input value",
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+
-50,
95+
50
96+
]
97+
},
98+
"example_values": [
99+
-3.25,
100+
0.125,
101+
1.6,
102+
-0.45,
103+
2.75,
104+
-7.3,
105+
4.2,
106+
-5.8,
107+
0,
108+
9.1,
109+
-2.2,
110+
3.33,
111+
-0.01,
112+
0.5,
113+
-1.75,
114+
6.7,
115+
-4.9,
116+
8.8,
117+
-10.4,
118+
12.6
119+
]
120+
}
121+
],
122+
"output_policy": "real_floating_point_and_generic",
123+
"returns": {
124+
"desc": "result",
125+
"type": {
126+
"javascript": "number",
127+
"jsdoc": "number",
128+
"c": "double",
129+
"dtype": "float64"
130+
}
131+
},
132+
"keywords": [
133+
"cos",
134+
"cosine",
135+
"pi"
136+
],
137+
"extra_keywords": [
138+
"math.cos"
139+
]
140+
}
141+
}
67142
}

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

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,89 @@
6666
"cosine",
6767
"trig",
6868
"trigonometry"
69-
]
69+
],
70+
"__stdlib__": {
71+
"scaffold": {
72+
"$schema": "math/[email protected]",
73+
"base_alias": "cot",
74+
"alias": "cot",
75+
"pkg_desc": "evaluate the cotangent of a double-precision floating-point number (in radians)",
76+
"desc": "evaluates the cotangent of a double-precision floating-point number (in radians)",
77+
"short_desc": "cotangent",
78+
"parameters": [
79+
{
80+
"name": "x",
81+
"desc": "input value",
82+
"type": {
83+
"javascript": "number",
84+
"jsdoc": "number",
85+
"c": "double",
86+
"dtype": "float64"
87+
},
88+
"domain": [
89+
{
90+
"min": "-infinity",
91+
"max": -5e-324
92+
},
93+
{
94+
"min": 5e-324,
95+
"max": "infinity"
96+
}
97+
],
98+
"rand": {
99+
"prng": "random/base/uniform",
100+
"parameters": [
101+
0.5,
102+
50
103+
]
104+
},
105+
"example_values": [
106+
11.37,
107+
-29.07,
108+
5.47,
109+
-41.83,
110+
2.73,
111+
24.13,
112+
-6.74,
113+
39.72,
114+
-0.64,
115+
1.19,
116+
-14.62,
117+
13.64,
118+
-9.51,
119+
6.88,
120+
-18.46,
121+
0.53,
122+
-4.38,
123+
4.11,
124+
-2.27,
125+
19.82
126+
]
127+
}
128+
],
129+
"output_policy": "real_floating_point_and_generic",
130+
"returns": {
131+
"desc": "cotangent",
132+
"type": {
133+
"javascript": "number",
134+
"jsdoc": "number",
135+
"c": "double",
136+
"dtype": "float64"
137+
}
138+
},
139+
"keywords": [
140+
"cot",
141+
"cotangent",
142+
"tan",
143+
"tangent",
144+
"sin",
145+
"sine",
146+
"cos",
147+
"cosine"
148+
],
149+
"extra_keywords": [
150+
"math.tan"
151+
]
152+
}
153+
}
70154
}

0 commit comments

Comments
 (0)