Skip to content

Commit 4fadd45

Browse files
chore: add structured package data for math/base/special/factorial
PR-URL: #8017 Ref: #7924 Reviewed-by: Athan Reines <[email protected]>
1 parent 590cfd6 commit 4fadd45

File tree

1 file changed

+73
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/factorial

1 file changed

+73
-1
lines changed

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

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,77 @@
6464
"combinatorics",
6565
"gamma",
6666
"number"
67-
]
67+
],
68+
"__stdlib__": {
69+
"scaffold": {
70+
"$schema": "math/[email protected]",
71+
"base_alias": "factorial",
72+
"alias": "factorial",
73+
"pkg_desc": "compute the factorial",
74+
"desc": "computes the factorial",
75+
"short_desc": "factorial",
76+
"parameters": [
77+
{
78+
"name": "x",
79+
"desc": "input value",
80+
"type": {
81+
"javascript": "number",
82+
"jsdoc": "number",
83+
"c": "double",
84+
"dtype": "float64"
85+
},
86+
"domain": [
87+
{
88+
"min": 0,
89+
"max": "infinity"
90+
}
91+
],
92+
"rand": {
93+
"prng": "random/base/discrete-uniform",
94+
"parameters": [
95+
0,
96+
100
97+
]
98+
},
99+
"example_values": [
100+
1,
101+
2,
102+
3,
103+
4,
104+
5,
105+
6,
106+
7,
107+
8,
108+
9,
109+
10,
110+
11,
111+
12,
112+
13,
113+
14,
114+
15,
115+
16,
116+
17,
117+
21,
118+
34,
119+
99
120+
]
121+
}
122+
],
123+
"output_policy": "real_floating_point_and_generic",
124+
"returns": {
125+
"desc": "factorial",
126+
"type": {
127+
"javascript": "number",
128+
"jsdoc": "number",
129+
"c": "double",
130+
"dtype": "float64"
131+
}
132+
},
133+
"keywords": [
134+
"factorial",
135+
"fact"
136+
],
137+
"extra_keywords": []
138+
}
139+
}
68140
}

0 commit comments

Comments
 (0)