Skip to content

Commit 1b2c035

Browse files
chore: add structured package data for math/base/special/log2
PR-URL: #7989 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent 70f6fed commit 1b2c035

File tree

1 file changed

+78
-1
lines changed

1 file changed

+78
-1
lines changed

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

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,82 @@
6262
"base 2",
6363
"logarithm",
6464
"log"
65-
]
65+
],
66+
"__stdlib__": {
67+
"scaffold": {
68+
"$schema": "math/[email protected]",
69+
"base_alias": "log2",
70+
"alias": "log2",
71+
"pkg_desc": "compute the binary logarithm",
72+
"desc": "computes the binary logarithm",
73+
"short_desc": "binary logarithm",
74+
"parameters": [
75+
{
76+
"name": "x",
77+
"desc": "input value",
78+
"type": {
79+
"javascript": "number",
80+
"jsdoc": "number",
81+
"c": "double",
82+
"dtype": "float64"
83+
},
84+
"domain": [
85+
{
86+
"min": 0,
87+
"max": "infinity"
88+
}
89+
],
90+
"rand": {
91+
"prng": "random/base/uniform",
92+
"parameters": [
93+
0,
94+
100
95+
]
96+
},
97+
"example_values": [
98+
0,
99+
0.01,
100+
0.25,
101+
0.5,
102+
1,
103+
2,
104+
3,
105+
4,
106+
9,
107+
16,
108+
25,
109+
36,
110+
49,
111+
64,
112+
81,
113+
100,
114+
0.1,
115+
10,
116+
50,
117+
99.99
118+
]
119+
}
120+
],
121+
"output_policy": "real_floating_point_and_generic",
122+
"returns": {
123+
"desc": "binary logarithm",
124+
"type": {
125+
"javascript": "number",
126+
"jsdoc": "number",
127+
"c": "double",
128+
"dtype": "float64"
129+
}
130+
},
131+
"keywords": [
132+
"logarithm",
133+
"log2",
134+
"binary",
135+
"base 2",
136+
"log"
137+
],
138+
"extra_keywords": [
139+
"math.log2"
140+
]
141+
}
142+
}
66143
}

0 commit comments

Comments
 (0)