Skip to content
77 changes: 76 additions & 1 deletion lib/node_modules/@stdlib/math/base/special/inv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,80 @@
"double",
"dbl"
],
"__stdlib__": {}
"__stdlib__": {
"scaffold": {
"$schema": "math/base@v1.0",
"base_alias": "inv",
"alias": "inv",
"pkg_desc": "compute the multiplicative inverse of a number",
"desc": "computes the multiplicative inverse of a number",
"short_desc": "multiplicative inverse",
"parameters": [
{
"name": "x",
"desc": "input value",
"type": {
"javascript": "number",
"jsdoc": "number",
"c": "double",
"dtype": "float64"
},
"domain": [
{
"min": "-infinity",
"max": "infinity"
}
],
"rand": {
"prng": "random/base/uniform",
"parameters": [
-10,
10
]
},
"example_values": [
0,
-0.01,
0.25,
0.5,
-1,
2,
3,
4,
9,
-16,
25,
-36,
-49,
64,
81,
100,
0.1,
10,
-50,
99.99
]
}
],
"output_policy": "real_floating_point_and_generic",
"returns": {
"desc": "multiplicative inverse",
"type": {
"javascript": "number",
"jsdoc": "number",
"c": "double",
"dtype": "float64"
}
},
"keywords": [
"inv",
"multiplicative",
"inverse",
"reciprocal"
],
"extra_keywords": [
"math.pow"
]
}
}
}
79 changes: 77 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/invf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"stdmath",
"mathematics",
"math",
"invf",
"inv",
"multiplicative",
"inverse",
"reciprocal",
Expand All @@ -65,5 +65,80 @@
"float",
"single"
],
"__stdlib__": {}
"__stdlib__": {
"scaffold": {
"$schema": "math/base@v1.0",
"base_alias": "inv",
"alias": "invf",
"pkg_desc": "compute the multiplicative inverse of a number",
"desc": "computes the multiplicative inverse of a number",
"short_desc": "multiplicative inverse",
"parameters": [
{
"name": "x",
"desc": "input value",
"type": {
"javascript": "number",
"jsdoc": "number",
"c": "float",
"dtype": "float32"
},
"domain": [
{
"min": "-infinity",
"max": "infinity"
}
],
"rand": {
"prng": "random/base/uniform",
"parameters": [
-10,
10
]
},
"example_values": [
0,
-0.01,
0.25,
0.5,
-1,
2,
3,
4,
9,
-16,
25,
-36,
-49,
64,
81,
100,
0.1,
10,
-50,
99.99
]
}
],
"output_policy": "real_floating_point_and_generic",
"returns": {
"desc": "multiplicative inverse",
"type": {
"javascript": "number",
"jsdoc": "number",
"c": "float",
"dtype": "float32"
}
},
"keywords": [
"inv",
"multiplicative",
"inverse",
"reciprocal"
],
"extra_keywords": [
"math.pow"
]
}
}
}
78 changes: 77 additions & 1 deletion lib/node_modules/@stdlib/math/base/special/labs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,81 @@
"32-bit",
"32bit",
"long"
]
],
"__stdlib__": {
"scaffold": {
"$schema": "math/base@v1.0",
"base_alias": "abs",
"alias": "labs",
"pkg_desc": "compute an absolute value of a signed 32-bit integer",
"desc": "computes an absolute value of a signed 32-bit integer",
"short_desc": "absolute value",
"parameters": [
{
"name": "x",
"desc": "input value",
"type": {
"javascript": "number",
"jsdoc": "integer",
"c": "int32_t",
"dtype": "int32"
},
"domain": [
{
"min": "-infinity",
"max": "infinity"
}
],
"rand": {
"prng": "random/base/discrete-uniform",
"parameters": [
-10,
10
]
},
"example_values": [
0,
-5,
2,
-10,
-1,
2,
3,
4,
9,
-16,
25,
-36,
-49,
64,
81,
100,
-99,
10,
-50,
98
]
}
],
"output_policy": "real_floating_point_and_generic",
"returns": {
"desc": "absolute value",
"type": {
"javascript": "number",
"jsdoc": "integer",
"c": "int32_t",
"dtype": "int32"
}
},
"keywords": [
"abs",
"labs",
"absolute",
"magnitude"
],
"extra_keywords": [
"math.abs"
]
}
}
}