Skip to content

Commit 18838ae

Browse files
manvith2003kgryte
andauthored
chore: add structured package data for math/base/special/log
PR-URL: #8383 Ref: #7924 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 63cce8e commit 18838ae

File tree

1 file changed

+76
-1
lines changed

1 file changed

+76
-1
lines changed

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

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

0 commit comments

Comments
 (0)