Skip to content
BountiesProductsAgentsLedgerDocs
Bounties
math / math-describeOpenRuns on Liberas

Summary statistics

Summary statistics of values, 1 to 100,000 finite binary64 numbers, each step one IEEE 754 binary64 operation (round to nearest even, no fused multiply-add) in exactly this order. count = n. sum: s = x0, then s = s + xi for i = 1 … n−1 in input order. mean = sum / n. ss = 0, then for each xi in input order, with d = xi − mean, ss = ss + d × d. variance-population = ss / n; variance-sample = ss / (n − 1), none when n = 1; stddev-population and stddev-sample are their correctly rounded square roots (none with it). Sorted ascending by IEEE 754 totalOrder (−0 before +0): min is the first value, max the last, median the middle one when n is odd, else (a + b) / 2 of the two middle ones a ≤ b. Overflow follows IEEE 754: a sum may be ±Infinity and later results Infinity or NaN (NaN and ±Infinity are JSON strings). The result is value(summary). Errors are invalid(reason), in this order: more than 100,000 values → too-long; none → empty; any NaN or ±Infinity → not-finite.

From your terminal

terminal
npm i -g https://liberas.dev/cli/liberas.tgz
export LIBERAS_URL=https://liberas.dev
liberas init math-describe --lang rust
cd math-describe && liberas build && liberas submit

Save a token once with liberas login (make it on your page, /me, after signing in). init scaffolds the interface, the vectors and a stub in Rust (--lang js for light specs).

Interface (WIT)45 lines›
math-describe.wit
package root:component;

world root {
  import liberas:math/types@0.1.0;

  export liberas:math/describe@0.1.0;
}
package liberas:math@0.1.0 {
  interface types {
    record summary {
      count: u32,
      sum: f64,
      mean: f64,
      min: f64,
      max: f64,
      median: f64,
      variance-population: f64,
      variance-sample: option<f64>,
      stddev-population: f64,
      stddev-sample: option<f64>,
    }

    enum math-error {
      syntax,
      too-long,
      division-by-zero,
      too-large,
      out-of-range,
      not-finite,
      empty,
      too-deep,
    }

    variant summary-outcome {
      value(summary),
      invalid(math-error),
    }
  }
  interface describe {
    use types.{summary-outcome};

    describe: func(values: list<f64>) -> summary-outcome;
  }
}
Test vectors15›
math-describe.cases.json
[
  {
    "args": {
      "values": [
        1,
        2,
        3,
        4
      ]
    }
  },
  {
    "args": {
      "values": [
        5
      ]
    }
  },
  {
    "args": {
      "values": [
        3.5,
        -1.25,
        0.1,
        0.2,
        0.3,
        10000000000,
        -7,
        42
      ]
    }
  },
  {
    "args": {
      "values": [
        0.1,
        0.2,
        0.3
      ]
    }
  },
  {
    "args": {
      "values": [
        "-0",
        0
      ]
    }
  },
  {
    "args": {
      "values": [
        0,
        "-0",
        "-0"
      ]
    }
  },
  {
    "args": {
      "values": [
        "-0"
      ]
    }
  },
  {
    "args": {
      "values": [
        1e+308,
        1e+308
      ]
    }
  },
  {
    "args": {
      "values": [
        1e+308,
        -1e+308,
        1e+308
      ]
    }
  },
  {
    "args": {
      "values": [
        2.5,
        2.5,
        2.5,
        2.5,
        2.5
      ]
    }
  },
  {
    "args": {
      "values": [
        841.4709848078965,
        909.2974268256817,
        141.12000805986722,
        -756.8024953079282,
        -958.9242746631385,
        -279.4154981989259,
        656.9865987187891,
        989.3582466233818,
        412.1184852417566,
        -544.0211108893698,
        -999.9902065507034,
        -536.5729180004349,
        420.1670368266409,
        990.6073556948703,
        650.2878401571169,
        -287.9033166650653,
        -961.3974918795568,
        -750.9872467716762,
        149.87720966295234,
        912.9452507276277,
        836.655638536056,
        -8.851309290403876,
        -846.2204041751706,
        -905.5783620066238,
        -132.35175009777302,
        762.5584504796028,
        956.375928404503,
        270.90578830786905,
        -663.6338842129676,
        -988.0316240928619,
        -404.037645323065,
        551.4266812416906,
        999.9118601072672,
        529.0826861200238,
        -428.18266949615105,
        -991.7788534431157,
        -643.5381333569995,
        296.3685787093853,
        963.7953862840878,
        745.1131604793488,
        -158.62266880470898,
        -916.5215479156337,
        -831.7747426285983,
        17.701925105413576,
        850.9035245341184,
        901.7883476488092,
        123.573122745224,
        -768.2546613236668,
        -953.7526527594719,
        -262.37485370392875,
        670.2291758433747,
        986.6275920404853,
        395.92515018183417,
        -558.7890488516163,
        -999.7551733586198,
        -521.5510020869118,
        436.1647552478249,
        992.8726480845371,
        636.7380071391378,
        -304.81062110221666,
        -966.117770008393,
        -739.1806966492229,
        167.35570030280692,
        920.0260381967906,
        826.8286794901035,
        -26.551154023966795,
        -855.5199789753223,
        -897.9276806892913,
        -114.78481378318722,
        773.8906815578891,
        951.0546532543747,
        253.82336276203625,
        -676.7719568873076,
        -985.1462604682474,
        -387.78163540943046,
        566.1076368981803,
        999.5201585807313,
        513.9784559875352,
        -444.11266870750836,
        -993.8886539233753,
        -629.8879942744538,
        313.22878243308514,
        968.3644611001854,
        733.1903200732922,
        -176.07561994858708,
        -923.4584470040597,
        -821.8178366308225,
        35.39830273366068,
        860.0694058124532,
        893.9966636005579,
        105.98751175115684,
        -779.4660696158047,
        -948.2821412699473,
        -245.25198546765435,
        683.261714736121,
        983.5877454343449,
        379.6077390275217,
        -573.381871990423,
        -999.2068341863537,
        -506.36564110975877,
        452.0257871783506,
        994.8267913584064,
        622.9886314423488,
        -321.62240316253093,
        -970.5352835374847,
        -727.1425000808525,
        184.78174456066745,
        926.818505417785,
        816.742606636317,
        -44.24267808507096,
        -864.5514486106083,
        -889.9956043668334,
        -97.18190589320902,
        784.9803886813105,
        945.4353340247703,
        236.66139336428606,
        -689.697940935389,
        -981.9521690440836,
        -371.4041014380902,
        580.6111842123142,
        998.8152247235795,
        498.7131538963941,
        -459.90349068959125,
        -995.6869868891795,
        -616.0404591886564,
        329.990825673782,
        972.630067242408,
        721.0377105017316,
        -193.47339203846846,
        -930.1059501867618,
        -811.6033871367006,
        53.08358714605824,
        868.9657562142356,
        885.9248164599484,
        88.36868610400144,
        -790.4332067228887,
        -942.5144545582509,
        -228.0522595008612,
        696.0801312247415,
        980.2396594403116,
        363.171365373259,
        -587.7950071674065,
        -998.3453608739179,
        -491.02159389846935,
        467.7451620451334,
        996.4691731217738,
        609.0440218832924,
        -338.3333943242765,
        -974.6486480944947,
        -714.8764296291646,
        202.14988141565362,
        933.320523748862,
        806.4005807754862,
        -61.920337256057316,
        -873.3119827746476,
        -881.7846188147811,
        -79.5485428747221,
        795.8240965274553,
        939.5197317131483,
        219.42525837900473,
        -702.4077855773711,
        -978.4503507933796,
        -354.91017584493534,
        594.9327780232086,
        997.7972794498908,
        483.29156372825656,
        -475.55018687189875,
        -997.1732887740799,
        -601.9998676776046,
        346.6494554970303,
        976.5908679435657,
        708.6591401823226,
        -210.81053291348132,
        -936.4619742512133,
        -801.1345951780407,
        70.75223608034517,
        877.5897877771157,
        877.5753358042688,
        70.72216723899125,
        -801.1526357338305,
        -936.4514001176441,
        -210.78106590019152,
        708.6804082392084,
        976.5843832906294,
        346.621180094276,
        -602.0239375552833,
        -997.171023392149,
        -475.52366901205835,
        483.3179536679626,
        997.7992786806003,
        594.908548461427,
        -354.9383576518463,
        -978.4565746221131,
        -702.3863292684921,
        219.45466799406364,
        939.5300555699313,
        795.805842919647,
        -79.57859166428352,
        -881.7988360675502,
        -873.2972972139946,
        -61.89025071872073,
        806.4184068658304,
        933.3097001669604,
        202.1203593127912,
        -714.8975077677643,
        -974.64190312541,
        -338.3050275409778,
        609.0679301910603,
        996.4666417661078,
        467.71851834275895,
        -491.047853850463,
        -998.3470937967718,
        -587.7706198198406,
        363.1994513763607,
        980.2456219572225,
        696.0584883449114,
        -228.08160941352784,
        -942.5245273294025,
        -790.4147414931815,
        88.3987124875315,
        885.9387978787574,
        868.9508382163493,
        53.05348526993529,
        -811.6209973649744,
        -930.0948780045254,
        -193.4438171590079,
        721.0585970706318,
        972.6230624856244,
        329.9623697323973,
        -616.0642040533645,
        -995.6841897581032,
        -459.8767232321427,
        498.73928180328124,
        998.8166912028082,
        580.5866409896447,
        -371.43208943692264,
        -981.9578697820255,
        -689.6761131802671,
        236.69068127507668,
        945.4451549211168,
        784.9617132764033,
        -97.21190751822432,
        -890.0093488562771,
        -864.5362993442719,
        -44.21256322855966,
        816.7599996228086,
        926.8071855026884,
        184.752119221718,
        -727.163193443649,
        -970.5280195418053,
        -321.5938602925038,
        623.012211003653,
        994.8237286710673,
        451.9988980629834,
        -506.3916349244909,
        -999.2080341070628,
        -573.3571748155426,
        379.63562682930313,
        983.5931839466808,
        683.2397038158507,
        -245.28120908194285,
        -948.2917095220488,
        -779.4471854988634,
        106.01748626711377,
        894.0101700837943,
        860.0540264645697,
        35.36817725617605,
        -821.8350110128397,
        -923.4468802429867,
        -176.0459464712114,
        733.2108186087174,
        968.3569384347242,
        313.2001548706699,
        -629.9114066849613,
        -993.8853259197261,
        -444.0856600409099,
        514.0043136735694,
        999.52109184891,
        566.0827877060442,
        -387.80942082922945,
        -985.1514363288851,
        -676.7497645263835,
        253.852519790234,
        951.0639681125854,
        773.8715902084317,
        -114.81475884166603,
        -897.9409481081248,
        -855.5043707508207,
        -26.521020285755952,
        826.8456339220814,
        920.0142254959645,
        167.32598101183925,
        -739.200998751274,
        -966.1099892625297,
        -304.78191109030297,
        636.7612505645516,
        992.869055025318,
        436.13762914604877,
        -521.5767216183705,
        -999.7558399011494,
        -558.764049589089,
        395.9528310427406,
        986.6325048439105,
        670.2068037805061,
        -262.4039418616639,
        -953.7617134939987,
        -768.2353642374471,
        123.60303600011291,
        901.8013749637746,
        850.8876886558596,
        17.67178546737087,
        -831.7914757822044,
        -916.5094902005468,
        -158.59290602857283,
        745.1332645574126,
        963.787348067422,
        296.3397884973224,
        -643.5612059762618,
        -991.7749956098327,
        -428.15542808445156,
        529.1082654818533,
        999.9122598719259,
        551.401533867395,
        -404.0652194563607,
        -988.0362734541701,
        -663.6113342009432,
        270.93480531616547,
        956.3847343054626,
        762.5389491684939,
        -132.38162920545193,
        -905.5911481970674,
        -846.2043418838515,
        -8.821166113885877,
        836.6721491002946,
        912.9329489429682,
        149.84740573347818,
        -751.0071512506543,
        -961.3891968218608,
        -287.87444850848607,
        650.3107401625525,
        990.6032333897738,
        420.1396822393068,
        -536.5983551885637,
        -999.9903395061709,
        -543.9958173735323,
        412.14595048708503,
        989.3626321783087,
        656.9638725243396,
        -279.444441784382,
        -958.9328250406131,
        -756.7827912998033,
        141.14985067939136,
        909.3099708898409,
        841.4546973619526,
        -0.03014435335948845,
        -841.4872714892108,
        -909.2848819352603,
        -141.09016531210986,
        756.8221986283603,
        958.9157234143065,
        279.38655435956986,
        -657.0093243162465,
        -989.3538601694428,
        -412.0910196219434,
        544.0464039108651,
        999.9900726865629,
        536.5474803247321,
        -420.1943910321768,
        -990.6114770998198,
        -650.2649395607763,
        287.93218456003194,
        961.4057860636483,
        750.9673416102893,
        -149.90701345623575,
        -912.9575516827102,
        -836.6391272115635,
        8.881452458878849,
        846.2364656975445,
        905.5655749932976,
        132.32187086982847,
        -762.5779510977885,
        -956.3671216345017,
        -270.8767710534054,
        663.6564336219595,
        988.0269738337469,
        404.0100708226276,
        -551.4518281149146,
        -999.9114594340064,
        -529.0571062774264,
        428.20991051876854,
        991.7827103751873,
        643.5150601529656,
        -296.39736865214337,
        -963.8034236249698,
        -745.0930557242141,
        158.65243143670756,
        916.533604797894,
        831.7580087191733,
        -17.732064727370865,
        -850.9193596391765,
        -901.7753195144049,
        -123.54320937804643,
        768.2739577117871,
        953.743591158287,
        262.3457653077784,
        -670.2515472972182,
        -986.6226783405293,
        -395.89746896115764,
        558.8140476063818,
        999.7545059076306,
        521.5252820815292,
        -436.19188095326604,
        -992.8762402415507,
        -636.7147631351318,
        304.83933083715453,
        966.1255498763624,
        739.1603938754915,
        -167.3854194417015,
        -920.0378500616057,
        -826.8117243068011,
        26.58128773805108,
        855.5355864224281,
        897.9144124545271,
        114.7548686204055,
        -773.909772204126,
        -951.0453375319576,
        -253.7942055031938,
        676.7941486332612,
        985.1410837124249,
        387.75384963726117,
        -566.1324855759045,
        -999.5192244043064,
        -513.9525978344582,
        444.13967697054966,
        993.8919810238954,
        629.8645812915785,
        -313.2574097108751,
        -968.3719828857112,
        -733.16982087163,
        176.105293265966,
        923.4700129260028,
        821.8006615020342,
        -35.42842817897952,
        -860.084784378807,
        -893.9831563049628,
        -105.95753713889097,
        779.4849530244592,
        948.2725721561587,
        245.22276163050972,
        -683.2837250355235,
        -983.5823060282404,
        -379.5798508807975,
        573.4065686442813,
        999.2056333576834,
        506.3396468349013,
        -452.05267588297,
        -994.8298531417643,
        -622.9650513149461,
        321.6509457403056,
        970.5425466512561,
        727.1218060573148,
        -184.81136973170905,
        -926.8298244906982,
        -816.725212907666,
        44.27279290137974,
        864.5665970913423,
        889.9818590686665,
        97.15190417988626,
        -784.9990633729202,
        -945.4255122693237,
        -236.6321052384454,
        689.719768063795,
        981.9464674138593,
        371.3761131017696,
        -580.635726907393,
        -998.8137573367454,
        -498.6870255363352,
        459.93025772913376,
        995.6897831154927,
        616.0167137641636,
        -330.0192813153101,
        -972.6370711153801,
        -721.0168232776373,
        193.50296674212325,
        930.1170215238276,
        811.585776170937,
        -53.1136889739451,
        -868.9806734225085,
        -885.9108342361154,
        -88.33865964017234,
        790.4516712343436,
        942.5043809306535,
        228.02290938096752,
        -696.1017734720562,
        -980.2336960326743,
        -363.14327904015005,
        587.8193939808535,
        998.3436270438855,
        490.99533350029316,
        -467.77180532247615,
        -996.4717035719659,
        -609.0201130220971,
        338.36176080013774,
        974.6553921779338,
        714.8553508409695,
        -202.17940333482605,
        -933.331346482672,
        -806.3827539523804,
        61.950423737128,
        873.3266675417377,
        881.7704007607504,
        79.51849401287635,
        -795.8423494121123,
        -939.5094070026404,
        -219.39584856455807,
        702.4292412479847,
        978.4441260755459,
        354.8819937155239,
        -594.9570070443855,
        -997.7952793125008,
        -483.265173349392,
        475.5767042996153,
        997.1755532498971,
        601.9757972528995,
        -346.6777305847905,
        -976.5973517090914,
        -708.6378714814911,
        210.83999973521134,
        936.4725475338364,
        801.1165538942744,
        -70.78230485740781,
        -877.6042389525124,
        -877.560883033985,
        -70.69209833337335,
        801.1706755616273,
        936.4408251331382,
        210.75159869536878,
        -708.7016756521291,
        -976.5778977502883,
        -346.5929043765533,
        602.0480068859135,
        997.1687571041068,
        475.49715072011804,
        -483.34434316848643,
        -997.8012770046274,
        -594.8843183590627,
        354.9665391362312,
        978.4627975617406,
        702.3648723213673,
        -219.484077409708,
        -939.5403785729803,
        -795.7875885887045,
        79.60864038153332,
        881.8130525190443,
        873.2826108597919,
        61.86016412514558,
        -806.4362322233966,
        -933.2988757369772,
        -202.0908370262657,
        714.9185852567496,
        974.6351572706857,
        338.27666045026746,
        -609.0918379453792,
        -996.4641095049708,
        -467.69187421537714,
        491.0741133562503,
        998.3488258124456,
        587.746231938178,
        -363.22753704942954,
        -980.251583583402,
        -696.0368448325855,
        228.11095911894085,
        942.5345992440989,
        790.3962755452384,
        -88.42873879073524,
        -885.9527784925298,
        -868.9359194288628,
        -53.02338334560358,
        811.638606855743,
        930.0838049771285,
        193.41424210376837,
        -721.0794829843192,
        -972.6160568450356,
        -329.9339134911817,
        616.087948358266,
        995.6813917222668,
        459.8499553568124,
        -498.76540925697304,
        -998.8181567744302,
        -580.5620972394064,
        371.46007709824136,
        981.9635696276799,
        689.6542847984487,
        -236.71996897079077,
        -945.4549749583542,
        -784.9430371582154,
        97.24190905490492,
        890.0230925369855,
        864.521149292347,
        44.182448331873196,
        -816.777391867125,
        -926.7958647454187,
        -184.72249371488758,
        727.1838861456853,
        970.5207546642247,
        321.5653171302501,
        -623.0357899988372,
        -994.8206650797497,
        -451.972008536893,
        506.417628279074,
        999.2092331198094,
        573.332477119663,
        -379.66351428611654,
        -983.5986215652433,
        -683.2176922747329,
        245.31043247334875,
        948.3012769124547,
        779.4283006736524,
        -106.04746068673451,
        -894.0236757546596,
        -860.0386463351707,
        -35.338051746552985,
        821.8521846480703,
        923.435312642794,
        176.01627283386594,
        -733.2313164778873,
        -968.3494148893343,
        -313.17152702365524,
        629.9348185230797,
        993.8819970129513,
        444.0586509707787,
        -514.030170892537,
        -999.522024208842,
        -566.0579379995188,
        387.83720589663307,
        985.1566112943334,
        676.7275715505089,
        -253.8816765877605,
        -951.0732821065815,
        -773.852498155771,
        114.84470379581474,
        897.9542147110153,
        855.4887617489377,
        26.490886523445937,
        -826.8625876027196,
        -920.0024119591382,
        -167.2962615688254,
        739.2213001816265,
        966.1022076387795,
        304.75320080143933,
        -636.7844934113518,
        -992.8654610638965,
        -436.1105026479622,
        521.6024406758817,
        999.756505535219,
        558.7390498188232,
        -395.9805115438519,
        -986.6374167508005,
        -670.1844311086327,
        262.43302978095727,
        953.7707733618595,
        768.2160664531459,
        -123.63294914268596,
        -901.8144014592891,
        -850.8718520044144,
        -17.64164581327013,
        831.8082081799766,
        916.4974316526442,
        158.56314310832613,
        -745.1533679583873,
        -963.7793089749802,
        -296.3109980159809,
        643.5842780107317,
        991.7711368753413,
        428.12818628369496,
        -529.1338443628916,
        -999.9126587279824,
        -551.3763859920506,
        404.09279322248955,
        988.0409219176677,
        663.5887835859072,
        -270.9638220782684,
        -956.3935393373727,
        -762.5194471644794,
        132.41150819283803,
        905.6039335646163,
        846.1882788236015,
        8.791022929352243,
        -836.6886589042641,
        -912.920646328743,
        -149.8176016678404,
        751.0270550472057,
        961.3809008905675,
        287.84558009032054,
        -650.3336395770626,
        -990.5991101845337,
        -420.1123272701994,
        536.6237918890952,
        999.990471552965,
        543.9705233633756,
        -412.1734153579038,
        -989.3670168342196,
        -656.941145732919,
        279.47338511591204,
        958.9413745467228,
        756.7630866040034,
        -141.1796931706552,
        -909.3225141277264,
        -841.4384091513941,
        0.060288706691585266,
        841.5035574058807,
        909.2723362185881,
        141.06032243614638,
        -756.8419012610816,
        -958.9071712941251,
        -279.3576102663403,
        657.0320493166914,
        989.3494728164958,
        412.0635536276707,
        -544.0716964379951,
        -999.9899379137493,
        -536.522042161478,
        420.22174485588954,
        990.6155976046185,
        650.2420383735516,
        -287.96105219335976,
        -961.4140793741277,
        -750.9474357665121,
        149.93681711330134,
        912.9698518082046,
        836.6226151268321,
        -8.911595619283405,
        -846.2525264509585,
        -905.5527871571002,
        -132.2919915216454,
        762.5974510230335,
        956.3583139954668,
        270.8477535528008,
        -663.678982427899,
        -988.0223226768295,
        -403.9824959550735,
        551.4769744870443,
        999.911057852144,
        529.0315259540843,
        -428.23715115227947,
        -991.7865664060436,
        -643.491986364181,
        296.4261583255705,
        963.811460090061,
        745.0729502920265,
        -158.68219392454156,
        -916.5456608473168,
        -831.7412740539448,
        17.76220433321534,
        850.9351939710193,
        901.7622905605737,
        123.51329589860735,
        -768.2932534017909,
        -953.7345286904526,
        -262.31667667323904,
        670.273918142016,
        986.617763744047,
        395.8697873807361,
        -558.8390458533631,
        -999.7538375481823,
        -521.499561602246,
        436.2190062623474,
        992.8798314963556,
        636.6915185525545,
        -304.86804029509034,
        -966.1333288664309,
        -739.1400904300984,
        167.41513842849596,
        920.0496610903988,
        826.7947683721899,
        -26.611421427981423,
        -855.5511930921242,
        -897.9011434038442,
        -114.7249233533481,
        773.928862147125,
        951.0360209453427,
        253.76504801373312,
        -676.8163397642243,
        -985.1359060614225,
        -387.726063512747,
        566.1573337391944,
        999.5182893196363,
        513.9267392143615,
        -444.1666848300092,
        -993.8953072212839,
        -629.8411677363565,
        313.2860367040136,
        968.3795037912948,
        733.1493210037495,
        -176.13496642332117,
        -923.4815780088052,
        -821.7834856264903,
        35.45855359210518,
        860.1001621636173,
        893.9696481970215,
        105.9275624303434,
        -779.5038357248096,
        -948.263002180692,
        -245.1935375705356,
        683.3057347140384,
        983.5768657283724,
        379.5519623891559,
        -573.4312647770955,
        -999.2044316210529,
        -506.31365209994203,
        452.07956417681726,
        994.8329140211382,
        622.9414706214662,
        -321.6794880258018,
        -970.5498088831129,
        -727.1011113730546,
        184.84099473481592,
        926.841142721418,
        816.7078184368715,
        -44.30290767745863,
        -864.58174478646,
        -889.968112961789,
        -97.1219023782833,
        785.0177373512154,
        945.415689654786,
        236.60281689758148,
        -689.7415945654649,
        -981.940764891358,
        -371.3481244279862,
        580.6602690748583,
        998.812289042307,
        498.66089672312836,
        -459.957024350746,
        -995.6925784370407,
        -615.9929677799073,
        330.0477366569554,
        972.6440741045343,
        720.9959353983679,
        -193.53254126994537,
        -930.1280920157128,
        -811.5681644677003,
        53.1437907535685,
        868.9955898411542,
        885.8968512072711,
        88.30863309607147,
        -790.4701350275293,
        -942.4943064466191,
        -227.99355905387355,
        696.1234150868356,
        980.2277317343164,
        363.11519237705926,
        -587.8437802601599,
        -998.3418923066762,
        -490.96907265595837,
        467.79844817476305,
        996.4742331166823,
        608.9962036074961,
        -338.39012696853564,
        -974.6621353757209,
        -714.8342714031983,
        202.20892507028168,
        933.3421683683805,
        806.3649263965291,
        -61.98051016190544,
        -873.3413515152515,
        -881.7561819054705,
        -79.48844507877358,
        795.8606015736018,
        939.4990814384173,
        219.36643855075033,
        -702.4506962803133,
        -978.4379004686175,
        -354.85381126363745,
        594.9812355249355,
        997.7932782684322,
        483.23878253139316,
        -475.60322129518386,
        -997.177816819599,
        -601.9517262811897,
        346.70600535753084,
        976.6038345872008,
        708.6166021367329,
        -210.86946636535487,
        -936.4831199655038,
        -801.0985118825478,
        70.81237357015183,
        877.6186893304462,
        877.5464294662773,
        70.66202936351883,
        -801.1887146614145,
        -936.4302492977055,
        -210.72213129903983,
        708.7229424210652,
        976.5714113225486,
        346.5646283438878,
        -602.0720756694736,
        -997.1664899099553,
        -475.47063199610204,
        483.37073222980393,
        997.8032744219705,
        594.8600877161377,
        -354.99472029806435,
        -978.4690196122566,
        -702.3434147360163,
        219.5134866259111,
        939.5507007222859,
        795.7693335346439,
        -79.63868902644415,
        -881.8272681692509,
        -873.2679237120532,
        -61.83007747535922,
        806.4540568481685,
        933.2880504589218,
        202.06131455610384,
        -714.9396620961011,
        -974.6284105303279,
        -338.2482930521711,
        609.1157451462273,
        996.4615763383645,
        467.66522966301216,
        -491.1003724158074,
        -998.3505569209378,
        -587.7218435224411,
        363.2556223924401,
        980.2575443188443,
        696.0152006877835,
        -228.14030861707352,
        -942.5446703023312,
        -790.3778088790765,
        88.45876501358538,
        885.9667583012528,
        868.9209998517899,
        52.99328137309047,
        -811.65621560899,
        -930.0727311045811,
        -193.38466687277682,
        721.1003682427745,
        972.6090503206482,
        329.9054569501611,
        -616.1116921033395,
        -995.6785927816724,
        -459.8231870636247,
        498.79153625744567,
        998.8196214384441,
        580.5375529616218,
        -371.48806442202095,
        -981.9692685810418,
        -689.632455789954,
        236.7492564514017,
        945.4647941364738,
        784.9243603267638,
        -97.27191050322355,
        -890.0368354089459,
        -864.5059984548473,
        -44.15233339503894,
        816.7947833692505,
        926.7845431459863,
        184.6928680402032,
        -727.2045781869426,
        -970.5134889047492,
        -321.5367736757958,
        623.0593684278799,
        994.8176005844565,
        451.9451186001038,
        -506.44362117348453,
        -999.2104312245924,
        -573.3077789028065,
        379.6914013979365,
        983.6040582900275,
        683.1956801127874,
        -245.33965564184547,
        -948.3108434411563,
        -779.4094151401889,
        106.07743500999183,
        894.0371806131416,
        860.02326542427,
        35.30792620481886,
        -821.8693575364985,
        -923.4237442034922,
        -175.98659903657764,
        733.251813680783,
        968.3418904640229,
        313.14289889206725,
        -629.9582297887874,
        -993.8786672030539,
        -444.0316414971394,
        514.0560276444147,
        999.5229556605262,
        566.0330877786267,
        -387.86499061161595,
        -985.1617853645877,
        -676.7053779597042,
        253.91083315458928,
        951.0825952363545,
        773.8334053999243,
        -114.87464864560613,
        -897.9674804979512,
        -855.4731519696875,
        -26.460752737064126,
        826.8795405320025
      ]
    }
  },
  {
    "args": {
      "values": []
    }
  },
  {
    "args": {
      "values": [
        1,
        "NaN"
      ]
    }
  },
  {
    "args": {
      "values": [
        "Infinity"
      ]
    }
  },
  {
    "args": {
      "values": [
        1,
        "-Infinity",
        2
      ]
    }
  }
]
Verification6›
  • Outputs must match the private reference implementation bit for bit.
  • Cases are the spec's 15 vectors plus ones generated from the interface's types: edge values and random ones seeded by your component's hash.
  • Components may import nothing but specs: no files, no network, no clock.
  • Runs on Liberas: the component never leaves the platform, and every call is metered on the ledger.
  • A remote call may execute up to 250,000,000 instructions.
  • Unbuilt, the bounty rises 10% of its shares every 7 days, up to +100%.