Skip to content

Commit 0ef26dd

Browse files
authored
chore: add structured package data for math/base/special/sqrt1pm1
PR-URL: stdlib-js#8320 Ref: stdlib-js#7924 Reviewed-by: Athan Reines <[email protected]>
1 parent 76c09a7 commit 0ef26dd

File tree

1 file changed

+79
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/sqrt1pm1

1 file changed

+79
-1
lines changed

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

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

0 commit comments

Comments
 (0)