Skip to content

Commit 3c06f99

Browse files
kgrytestdlib-bot
authored andcommitted
feat: update math scaffold databases
Signed-off-by: stdlib-bot <[email protected]>
1 parent acc8798 commit 3c06f99

File tree

1 file changed

+230
-3
lines changed
  • lib/node_modules/@stdlib/math/special/data

1 file changed

+230
-3
lines changed

lib/node_modules/@stdlib/math/special/data/unary.json

Lines changed: 230 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9456,9 +9456,236 @@
94569456
"math.trunc"
94579457
]
94589458
},
9459-
"@stdlib/math/base/special/trunc": {},
9460-
"@stdlib/math/base/special/trunc10": {},
9461-
"@stdlib/math/base/special/trunc2": {},
9459+
"@stdlib/math/base/special/trunc": {
9460+
"$schema": "math/[email protected]",
9461+
"base_alias": "trunc",
9462+
"alias": "trunc",
9463+
"pkg_desc": "round a double-precision floating-point number toward zero",
9464+
"desc": "rounds a double-precision floating-point number toward zero",
9465+
"short_desc": "",
9466+
"parameters": [
9467+
{
9468+
"name": "x",
9469+
"desc": "input value",
9470+
"type": {
9471+
"javascript": "number",
9472+
"jsdoc": "number",
9473+
"c": "double",
9474+
"dtype": "float64"
9475+
},
9476+
"domain": [
9477+
{
9478+
"min": "-infinity",
9479+
"max": "infinity"
9480+
}
9481+
],
9482+
"rand": {
9483+
"prng": "random/base/uniform",
9484+
"parameters": [
9485+
-10,
9486+
10
9487+
]
9488+
},
9489+
"example_values": [
9490+
64.5,
9491+
27.6,
9492+
0.9,
9493+
0.1,
9494+
-9.2,
9495+
8.3,
9496+
-1.4,
9497+
125.01,
9498+
-10.2,
9499+
11.3,
9500+
-12.4,
9501+
3.5,
9502+
-1.6,
9503+
15.7,
9504+
-16,
9505+
17.9,
9506+
-188,
9507+
19.11,
9508+
-200,
9509+
21.15
9510+
]
9511+
}
9512+
],
9513+
"output_policy": "real_floating_point_and_generic",
9514+
"returns": {
9515+
"desc": "rounded value",
9516+
"type": {
9517+
"javascript": "number",
9518+
"jsdoc": "number",
9519+
"c": "double",
9520+
"dtype": "float64"
9521+
}
9522+
},
9523+
"keywords": [
9524+
"trunc",
9525+
"truncate",
9526+
"round",
9527+
"nearest"
9528+
],
9529+
"extra_keywords": [
9530+
"math.trunc"
9531+
]
9532+
},
9533+
"@stdlib/math/base/special/trunc10": {
9534+
"$schema": "math/[email protected]",
9535+
"base_alias": "trunc10",
9536+
"alias": "trunc10",
9537+
"pkg_desc": "round a numeric value to the nearest power of 10 toward zero",
9538+
"desc": "rounds a numeric value to the nearest power of 10 toward zero",
9539+
"short_desc": "",
9540+
"parameters": [
9541+
{
9542+
"name": "x",
9543+
"desc": "input value",
9544+
"type": {
9545+
"javascript": "number",
9546+
"jsdoc": "number",
9547+
"c": "double",
9548+
"dtype": "float64"
9549+
},
9550+
"domain": [
9551+
{
9552+
"min": "-infinity",
9553+
"max": "infinity"
9554+
}
9555+
],
9556+
"rand": {
9557+
"prng": "random/base/uniform",
9558+
"parameters": [
9559+
-1000,
9560+
1000
9561+
]
9562+
},
9563+
"example_values": [
9564+
5.6,
9565+
49,
9566+
0.7,
9567+
-0.9,
9568+
-42,
9569+
88,
9570+
-3.2,
9571+
120,
9572+
-15,
9573+
230,
9574+
-375,
9575+
0,
9576+
9,
9577+
-99,
9578+
100,
9579+
-1000,
9580+
1500,
9581+
-2500,
9582+
7,
9583+
-8
9584+
]
9585+
}
9586+
],
9587+
"output_policy": "real_floating_point_and_generic",
9588+
"returns": {
9589+
"desc": "rounded value",
9590+
"type": {
9591+
"javascript": "number",
9592+
"jsdoc": "number",
9593+
"c": "double",
9594+
"dtype": "float64"
9595+
}
9596+
},
9597+
"keywords": [
9598+
"truncate",
9599+
"trunc",
9600+
"trunc10",
9601+
"round",
9602+
"floor",
9603+
"ceil",
9604+
"nearest"
9605+
],
9606+
"extra_keywords": [
9607+
"math.trunc"
9608+
]
9609+
},
9610+
"@stdlib/math/base/special/trunc2": {
9611+
"$schema": "math/[email protected]",
9612+
"base_alias": "trunc2",
9613+
"alias": "trunc2",
9614+
"pkg_desc": "round a numeric value to the nearest power of two toward zero",
9615+
"desc": "rounds a numeric value to the nearest power of two toward zero",
9616+
"short_desc": "",
9617+
"parameters": [
9618+
{
9619+
"name": "x",
9620+
"desc": "input value",
9621+
"type": {
9622+
"javascript": "number",
9623+
"jsdoc": "number",
9624+
"c": "double",
9625+
"dtype": "float64"
9626+
},
9627+
"domain": [
9628+
{
9629+
"min": "-infinity",
9630+
"max": "infinity"
9631+
}
9632+
],
9633+
"rand": {
9634+
"prng": "random/base/uniform",
9635+
"parameters": [
9636+
-1000,
9637+
1000
9638+
]
9639+
},
9640+
"example_values": [
9641+
5.6,
9642+
49,
9643+
0.7,
9644+
-0.9,
9645+
-42,
9646+
88,
9647+
-3.2,
9648+
120,
9649+
-15,
9650+
230,
9651+
-375,
9652+
0,
9653+
9,
9654+
-99,
9655+
100,
9656+
-1000,
9657+
1500,
9658+
-2500,
9659+
7,
9660+
-8
9661+
]
9662+
}
9663+
],
9664+
"output_policy": "real_floating_point_and_generic",
9665+
"returns": {
9666+
"desc": "rounded value",
9667+
"type": {
9668+
"javascript": "number",
9669+
"jsdoc": "number",
9670+
"c": "double",
9671+
"dtype": "float64"
9672+
}
9673+
},
9674+
"keywords": [
9675+
"truncate",
9676+
"trunc",
9677+
"trunc2",
9678+
"round",
9679+
"floor",
9680+
"ceil",
9681+
"nextpow2",
9682+
"prevpow2",
9683+
"nearest"
9684+
],
9685+
"extra_keywords": [
9686+
"math.trunc"
9687+
]
9688+
},
94629689
"@stdlib/math/base/special/vercosf": {
94639690
"$schema": "math/[email protected]",
94649691
"base_alias": "vercos",

0 commit comments

Comments
 (0)