Skip to content

Commit a01f693

Browse files
manvith2003kgryte
andauthored
chore: add structured package data for math/base/special/lnf
PR-URL: #8369 Ref: #7924 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 78dbf84 commit a01f693

File tree

1 file changed

+78
-2
lines changed

1 file changed

+78
-2
lines changed

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

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,85 @@
5858
"mathematics",
5959
"math",
6060
"math.log",
61-
"lnf",
61+
"ln",
6262
"natural",
6363
"logarithm",
6464
"log"
65-
]
65+
],
66+
"__stdlib__": {
67+
"scaffold": {
68+
"$schema": "math/base@v1.0",
69+
"base_alias": "ln",
70+
"alias": "lnf",
71+
"pkg_desc": "evaluate the natural logarithm of a single-precision floating-point number",
72+
"desc": "evaluates the natural logarithm of a single-precision floating-point number",
73+
"short_desc": "natural logarithm",
74+
"parameters": [
75+
{
76+
"name": "x",
77+
"desc": "input value",
78+
"type": {
79+
"javascript": "number",
80+
"jsdoc": "number",
81+
"c": "float",
82+
"dtype": "float32"
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": "natural logarithm",
124+
"type": {
125+
"javascript": "number",
126+
"jsdoc": "number",
127+
"c": "float",
128+
"dtype": "float32"
129+
}
130+
},
131+
"keywords": [
132+
"ln",
133+
"natural",
134+
"logarithm",
135+
"log"
136+
],
137+
"extra_keywords": [
138+
"math.log"
139+
]
140+
}
141+
}
66142
}

0 commit comments

Comments
 (0)