Skip to content

Commit 510d9ae

Browse files
Lokeshranjan8kgrytestdlib-bot
authored
chore: add structured package data for math/base/special/sqrt
PR-URL: #7987 Ref: #7924 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]> Co-authored-by: stdlib-bot <[email protected]>
1 parent 8e8e3a4 commit 510d9ae

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

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

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,81 @@
6363
"root",
6464
"power",
6565
"number"
66-
]
66+
],
67+
"__stdlib__": {
68+
"scaffold": {
69+
"$schema": "math/[email protected]",
70+
"base_alias": "sqrt",
71+
"alias": "sqrt",
72+
"pkg_desc": "compute the principal square root",
73+
"desc": "computes the principal square root",
74+
"short_desc": "principal square root",
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": "0",
88+
"max": "infinity"
89+
}
90+
],
91+
"rand": {
92+
"prng": "random/base/uniform",
93+
"parameters": [
94+
0,
95+
100
96+
]
97+
},
98+
"example_values": [
99+
0,
100+
0.01,
101+
0.25,
102+
0.5,
103+
1,
104+
2,
105+
3,
106+
4,
107+
9,
108+
16,
109+
25,
110+
36,
111+
49,
112+
64,
113+
81,
114+
100,
115+
0.1,
116+
10,
117+
50,
118+
99.99
119+
]
120+
}
121+
],
122+
"output_policy": "real_floating_point_and_generic",
123+
"returns": {
124+
"desc": "square root",
125+
"type": {
126+
"javascript": "number",
127+
"jsdoc": "number",
128+
"c": "double",
129+
"dtype": "float64"
130+
}
131+
},
132+
"keywords": [
133+
"sqrt",
134+
"square",
135+
"root",
136+
"principal"
137+
],
138+
"extra_keywords": [
139+
"math.sqrt"
140+
]
141+
}
142+
}
67143
}

0 commit comments

Comments
 (0)