text
stringlengths
7
2.39k
embedding
listlengths
768
768
Float64 returns the float64 value nearest to x. If x is too small to be represented by a float64 (|x| math.MaxFloat64), the result is (+Inf, Above) or (Inf, Below), depending on the sign of x.
[ 0.09370343387126923, 0.7781587839126587, 0.3314591348171234, 1.2284899950027466, -1.0730345249176025, -0.040339600294828415, -0.6517689228057861, -1.0012329816818237, -0.11221344769001007, -0.7513160705566406, -0.16505248844623566, 0.19668589532375336, 0.179257333278656, 0.9593108892440796...
Int returns the result of truncating x towards zero; or nil if x is an infinity. The result is Exact if x.IsInt(); otherwise it is Below for x > 0, and Above for x < 0. If a nonnil Int argument z is provided, Int stores the result in z instead of allocating a new Int.
[ 0.7606448531150818, 0.08617547899484634, 0.4346974492073059, 0.23993170261383057, -0.0012553624110296369, -0.24236710369586945, 0.6010767817497253, -0.1457386016845703, 0.03421300649642944, -0.5310103297233582, -0.3037334680557251, 0.274495005607605, -0.508909285068512, -0.1092347130179405...
Rat returns the rational number corresponding to x; or nil if x is an infinity. The result is Exact if x is not an Inf. If a nonnil Rat argument z is provided, Rat stores the result in z instead of allocating a new Rat.
[ 0.05715447664260864, 0.3366571366786957, 0.08714495599269867, -0.1546875536441803, 0.1891396939754486, -0.2714296877384186, -0.16330920159816742, -0.3438139855861664, 0.5372145771980286, -0.7290747761726379, -0.12169914692640305, 0.44892334938049316, -0.42379340529441833, -0.59552693367004...
Abs sets z to the (possibly rounded) value |x| (the absolute value of x) and returns z.
[ -0.6900584101676941, -1.0986377000808716, 0.3583598732948303, 0.2089088261127472, -0.6915205717086792, 0.17020820081233978, -0.2023288458585739, -1.066819190979004, 0.48965275287628174, -0.6301165819168091, 0.017858251929283142, 1.086796760559082, 1.2071573734283447, 0.2187686562538147, ...
Neg sets z to the (possibly rounded) value of x with its sign negated, and returns z.
[ -0.7158657908439636, -0.6739402413368225, 0.3269166350364685, 0.5097898244857788, -0.7935895919799805, 0.8504635691642761, -0.026889106258749962, -0.4107370972633362, 0.35362255573272705, -0.9320806860923767, -0.5469677448272705, -0.2937517762184143, 0.2460460364818573, 0.37993988394737244...
Mul sets z to the rounded product xy and returns z. Precision, rounding, and accuracy reporting are as for Add. Mul panics with ErrNaN if one operand is zero and the other operand an infinity. The value of z is undefined in that case.
[ -0.1219668909907341, 0.02112545073032379, 0.4953474998474121, 0.7406277656555176, 0.3985467553138733, 0.006020428612828255, 0.8760719895362854, -1.2917203903198242, 0.8214032649993896, -0.4940737187862396, 0.2875129282474518, 0.21851187944412231, 0.30865833163261414, 0.147666335105896, 0...
Quo sets z to the rounded quotient x/y and returns z. Precision, rounding, and accuracy reporting are as for Add. Quo panics with ErrNaN if both operands are zero or infinities. The value of z is undefined in that case.
[ -0.11728872358798981, -0.6400681734085083, 0.479041188955307, 0.3786342144012451, -0.02538890205323696, 0.3137706220149994, 1.0982732772827148, -1.2887290716171265, 0.024172497913241386, -1.0434050559997559, 0.36760786175727844, 0.4150940179824829, 0.14775143563747406, -0.1988384872674942,...
Cmp compares x and y and returns: 1 if x y
[ 0.16926264762878418, -0.023440752178430557, 0.5668511986732483, -0.18658466637134552, 0.4154578149318695, 0.3855573236942291, -0.8821213245391846, -1.1531168222427368, -0.06966953724622726, -0.006680249236524105, 0.41472458839416504, -0.08264000713825226, -0.08031637966632843, -0.309680283...
ParseFloat is like f.Parse(s, base) with f set to the given precision and rounding mode.
[ 1.3620665073394775, -0.49151289463043213, 0.3810861110687256, -0.4602058529853821, -0.6659843921661377, -0.440775066614151, 0.027173208072781563, 0.19294831156730652, -1.4050136804580688, -1.1568292379379272, 0.19655241072177887, -0.6973433494567871, 0.060994599014520645, -0.29320737719535...
GobDecode implements the gob.GobDecoder interface. The result is rounded per the precision and rounding mode of z unless z's precision is 0, in which case z is set exactly to the decoded value.
[ 0.2357342541217804, -0.39143916964530945, 0.6833207011222839, 0.5891573429107666, 0.6316444873809814, 0.15006554126739502, 0.03338392451405525, -0.08375893533229828, -0.1046176627278328, -0.1620302051305771, 0.6232818961143494, 0.11959013342857361, -0.8257861137390137, 0.5198036432266235, ...
MarshalText implements the encoding.TextMarshaler interface. Only the Float value is marshaled (in full precision), other attributes such as precision or accuracy are ignored.
[ 1.2673588991165161, 0.26761409640312195, 0.537655234336853, 0.0743839368224144, -0.6448832154273987, 0.8074427843093872, -0.8042949438095093, -0.11074256896972656, 0.1313924342393875, -0.15716513991355896, 0.19747012853622437, -0.6821016669273376, 0.09318042546510696, 0.6382413506507874, ...
UnmarshalText implements the encoding.TextUnmarshaler interface. The result is rounded per the precision and rounding mode of z. If z's precision is 0, it is changed to 64 before rounding takes effect.
[ -0.0974406749010086, 0.3662014603614807, 0.5373955965042114, -0.2734931707382202, -0.5175859928131104, -0.5198584794998169, 0.6835845708847046, 0.3289390802383423, 0.47459983825683594, 0.04510168358683586, 0.743588924407959, -0.8259536027908325, -0.2995261251926422, 0.08264528214931488, ...
String formats x like x.Text('g', 10). (String must be called explicitly, Float.Format does not support %s verb.)
[ 0.7407476902008057, 0.16890332102775574, 0.3431204557418823, -0.2659910321235657, -0.27248501777648926, 0.1468735635280609, -0.35706162452697754, -1.142237663269043, -0.00027007044991478324, 0.34925803542137146, 0.45665279030799866, 0.6454555988311768, 0.8304709792137146, 0.086904510855674...
Append appends to buf the string form of the floatingpoint number x, as generated by x.Text, and returns the extended buffer.
[ 0.9758175611495972, 0.15968291461467743, 0.3732311427593231, 0.10314594954252243, -1.0536599159240723, 0.7646071910858154, -0.9020094871520996, -0.3404810428619385, -0.016842974349856377, -0.631251335144043, -1.180202841758728, 0.24374595284461975, -0.2682749629020691, 0.21108737587928772,...
Format implements fmt.Formatter. It accepts all the regular formats for floatingpoint numbers ('b', 'e', 'E', 'f', 'F', 'g', 'G', 'x') as well as 'p' and 'v'. See (Float).Text for the interpretation of 'p'. The 'v' format is handled like 'g'. Format also supports specification of the minimum precision in digits, the ou...
[ 0.29210546612739563, -0.5480902194976807, 0.7742720246315002, -0.0520302914083004, -0.7478529214859009, 0.28104037046432495, -0.032678037881851196, -0.3398962914943695, 0.42435288429260254, -0.9394444823265076, 0.21223755180835724, -0.3285180330276489, 0.34729060530662537, 0.61115777492523...
Sign returns: 1 if x 0
[ -0.6180213689804077, 0.1351984739303589, 0.6667154431343079, 1.2213600873947144, 0.25885844230651855, -0.26952075958251953, -0.48463910818099976, 0.00006370885239448398, 0.3245047330856323, -0.5522136092185974, -0.32534655928611755, -0.7054082751274109, -0.35940420627593994, 0.455680072307...
SetInt64 sets z to x and returns z.
[ -1.2966591119766235, -0.0950106531381607, 0.12747325003147125, 1.1477340459823608, -0.48589223623275757, -0.26982632279396057, 0.4444997310638428, -0.6263194680213928, 0.995998740196228, -0.543229877948761, -0.86307293176651, -0.21754877269268036, -0.3765404522418976, -0.07306718826293945,...
SetUint64 sets z to x and returns z.
[ -0.9332455396652222, -0.23066306114196777, 0.1468970775604248, 0.5959688425064087, -0.2657977342605591, -0.09829189628362656, 0.20354793965816498, 0.04807520657777786, 1.1553324460983276, -1.0595024824142456, -0.6819025278091431, -0.5435329675674438, 0.8191655874252319, -0.2269266843795776...
NewInt allocates and returns a new Int set to x.
[ -0.047107141464948654, -0.14247438311576843, 0.3380175530910492, -0.2298843115568161, -1.3853081464767456, -0.13178730010986328, -0.257512629032135, -2.001681089401245, -0.15726009011268616, -0.8679156303405762, -0.22185485064983368, 0.7976938486099243, 0.14071965217590332, -0.849989533424...
Set sets z to x and returns z.
[ -0.36335325241088867, -0.4797351658344269, 0.04660152643918991, -0.16341184079647064, -0.8167961835861206, 0.22737927734851837, 0.5801293849945068, -1.042723536491394, 0.7207651734352112, -0.8739933967590332, -1.0186917781829834, 0.6568825840950012, 0.4395526051521301, -0.8258955478668213,...
Bits provides raw (unchecked but fast) access to x by returning its absolute value as a littleendian Word slice. The result and x share the same underlying array. Bits is intended to support implementation of missing lowlevel Int functionality outside this package; it should be avoided otherwise.
[ 0.19298778474330902, -0.35705095529556274, 0.8034813404083252, -0.39314302802085876, -0.8788955211639404, 0.5895187854766846, -0.5291959047317505, -1.7485995292663574, 0.47144758701324463, -0.22085049748420715, -0.1840285062789917, 1.140957236289978, 0.5675143003463745, 0.8342753648757935,...
SetBits provides raw (unchecked but fast) access to z by setting its value to abs, interpreted as a littleendian Word slice, and returning z. The result and abs share the same underlying array. SetBits is intended to support implementation of missing lowlevel Int functionality outside this package; it should be avoided...
[ -0.8437047600746155, -0.16123630106449127, 0.6464748382568359, -0.16896182298660278, -1.1260055303573608, 0.30329641699790955, 0.6858662366867065, -1.2630224227905273, 0.5501751899719238, -0.1651960164308548, 0.10688085854053497, 0.8666772842407227, 0.15045148134231567, 0.8571432828903198,...
Abs sets z to |x| (the absolute value of x) and returns z.
[ -0.7987866997718811, -0.772025465965271, 0.3882993459701538, 0.17742514610290527, -0.7043838500976562, 0.38636213541030884, -0.5737259984016418, -0.5874021649360657, 0.8232080936431885, -1.1085923910140991, -0.7960434556007385, 1.2806758880615234, 1.1997156143188477, -0.2324543595314026, ...
Neg sets z to x and returns z.
[ -1.057159662246704, -0.3077830374240875, 0.19139477610588074, 0.38172709941864014, -0.30681222677230835, 0.6754990220069885, -0.17783650755882263, -0.4434668719768524, 0.6425372958183289, -0.9788927435874939, -0.9559772610664368, 0.21839283406734467, 0.2470264881849289, -0.0127485692501068...
Add sets z to the sum x+y and returns z.
[ -0.003213474527001381, -0.6656641364097595, 0.3866833746433258, 0.3198888301849365, -0.6500879526138306, 0.3559953272342682, 0.17070674896240234, -1.419277548789978, 1.4642685651779175, -0.679559588432312, -0.27020716667175293, 0.7156282067298889, -0.02915540710091591, -0.7531640529632568,...
Sub sets z to the difference xy and returns z.
[ -0.1514379382133484, -0.27018940448760986, 0.11759769171476364, 0.4475867748260498, -0.8968065977096558, 0.16316597163677216, 0.7493063807487488, -1.1963598728179932, 0.26047858595848083, -0.748736560344696, -0.8689972758293152, 0.22843389213085175, -0.02003093622624874, -0.842379510402679...
Mul sets z to the product xy and returns z.
[ -0.5382682085037231, 0.5179868340492249, 0.03846710920333862, 0.5532268285751343, 0.250573068857193, 0.0377473421394825, 0.3247285783290863, -1.6724379062652588, 1.224974513053894, -0.21086767315864563, -0.5956551432609558, -0.03752870857715607, 0.7053834199905396, -0.5413806438446045, 0...
MulRange sets z to the product of all integers in the range [a, b] inclusively and returns z. If a > b (empty range), the result is 1.
[ -0.6482782959938049, 0.22953937947750092, 0.2230217605829239, 0.9818472266197205, -0.2997393012046814, -0.4054660201072693, 0.8922271728515625, -0.3663175404071808, 0.8143531084060669, -0.15910975635051727, -0.38946533203125, 0.22351908683776855, -0.4440895617008209, -0.4357212781906128, ...
Binomial sets z to the binomial coefficient of (n, k) and returns z.
[ 0.4224070608615875, -0.7165977358818054, 0.0629059374332428, 0.7832969427108765, 0.07755839079618454, -0.2974948585033417, 0.11416361480951309, -0.08526838570833206, 0.2262740582227707, -0.6213119029998779, -0.913562536239624, 0.25562816858291626, 0.07589036226272583, -0.17579668760299683,...
Quo sets z to the quotient x/y for y != 0 and returns z. If y == 0, a divisionbyzero runtime panic occurs. Quo implements truncated division (like Go); see QuoRem for more details.
[ 0.15791161358356476, -0.15609565377235413, 0.5111666917800903, 0.7268882393836975, -0.765148937702179, 0.20138591527938843, 1.0183703899383545, -1.3427975177764893, -0.0890219435095787, -0.7986294031143188, -0.0901884064078331, -0.2747580111026764, 0.2647048532962799, -0.22399194538593292,...
Rem sets z to the remainder x%y for y != 0 and returns z. If y == 0, a divisionbyzero runtime panic occurs. Rem implements truncated modulus (like Go); see QuoRem for more details.
[ 0.028967564925551414, -0.26012560725212097, 0.2894160747528076, 0.9450755715370178, -0.7778643369674683, 0.4315604567527771, 0.7571278810501099, -0.9210800528526306, 0.5593964457511902, -0.7370100021362305, 0.37954291701316833, -0.3670359253883362, -1.034385323524475, -0.7280846238136292, ...
QuoRem sets z to the quotient x/y and r to the remainder x%y and returns the pair (z, r) for y != 0. If y == 0, a divisionbyzero runtime panic occurs. QuoRem implements Tdivision and modulus (like Go): q = x/y with the result truncated to zero r = x yq (See Daan Leijen, ``Division and Modulus for Computer Scientists''....
[ -0.27801138162612915, -0.3069371283054352, 0.5103797316551208, 0.4558420777320862, -1.1153254508972168, 0.08155353367328644, 0.7428327202796936, -1.2843513488769531, 0.6123026013374329, -0.45548015832901, 0.10794667899608612, -0.6309776306152344, -0.19750747084617615, -0.20751966536045074,...
Div sets z to the quotient x/y for y != 0 and returns z. If y == 0, a divisionbyzero runtime panic occurs. Div implements Euclidean division (unlike Go); see DivMod for more details.
[ -0.10064629465341568, -0.5671986937522888, 0.3618108928203583, 1.151003360748291, -0.0705772191286087, 0.06929326057434082, 1.0915708541870117, -1.124138593673706, -0.043631479144096375, -0.854714572429657, 0.19108276069164276, 0.3867211639881134, 0.38704714179039, 0.18033960461616516, 0...
Mod sets z to the modulus x%y for y != 0 and returns z. If y == 0, a divisionbyzero runtime panic occurs. Mod implements Euclidean modulus (unlike Go); see DivMod for more details.
[ -1.058676838874817, 0.002449942985549569, 0.34911054372787476, 0.8596044778823853, -0.4992235600948334, 0.6178131103515625, 0.7041850686073303, -1.0275777578353882, 0.8193851709365845, -0.46425390243530273, 0.8846790790557861, 0.27132248878479004, -0.19826744496822357, -0.21568948030471802...
DivMod sets z to the quotient x div y and m to the modulus x mod y and returns the pair (z, m) for y != 0. If y == 0, a divisionbyzero runtime panic occurs. DivMod implements Euclidean division and modulus (unlike Go): q = x div y such that m = x yq with 0 <= m < |y| (See Raymond T. Boute, ``The Euclidean definition of...
[ -0.2986133396625519, -0.1767667680978775, 0.5184066891670227, 0.023114260286092758, -0.7590851187705994, 0.44720324873924255, 0.46981292963027954, -0.6824762225151062, -0.13250063359737396, -0.07966604083776474, 0.7322767972946167, 0.49460506439208984, 0.060587286949157715, 0.1162684857845...
Cmp compares x and y and returns: 1 if x y
[ 0.16926264762878418, -0.023440752178430557, 0.5668511986732483, -0.18658466637134552, 0.4154578149318695, 0.3855573236942291, -0.8821213245391846, -1.1531168222427368, -0.06966953724622726, -0.006680249236524105, 0.41472458839416504, -0.08264000713825226, -0.08031637966632843, -0.309680283...
CmpAbs compares the absolute values of x and y and returns: 1 if |x| |y|
[ -0.7239397168159485, -0.9803052544593811, 0.6870797276496887, -0.13289660215377808, -0.6783531308174133, 0.949185848236084, -1.6722333431243896, -1.2550251483917236, -0.14600366353988647, -0.14650753140449524, 0.8806927800178528, 0.7315691113471985, 0.8573263883590698, 0.09036882221698761,...
Int64 returns the int64 representation of x. If x cannot be represented in an int64, the result is undefined.
[ -0.6295572519302368, 0.6101696491241455, 0.20110894739627838, 1.119614601135254, 0.19365663826465607, -0.4144059717655182, -0.8028576374053955, -0.9177890419960022, 0.5033875703811646, -1.2925281524658203, 0.05463273823261261, 0.5696229934692383, 0.1801631897687912, -0.029691986739635468, ...
Uint64 returns the uint64 representation of x. If x cannot be represented in a uint64, the result is undefined.
[ -0.534676194190979, 0.7283902764320374, 0.47897109389305115, 0.9449775815010071, 0.47554048895835876, -0.3126240670681, -0.6843459010124207, -0.4955839514732361, 0.8600051403045654, -1.5971148014068604, -0.011111575178802013, -0.10325711965560913, 0.9062827229499817, -0.08253823220729828, ...
IsInt64 reports whether x can be represented as an int64.
[ -1.344183087348938, 0.3305935859680176, 0.18668398261070251, 1.4644209146499634, -0.1796422153711319, 0.15160246193408966, -0.7760778069496155, -0.6024238467216492, 0.7837051749229431, 0.00939846970140934, -0.6414784789085388, 0.44970983266830444, -0.26208195090293884, -0.20452937483787537...
IsUint64 reports whether x can be represented as a uint64.
[ -1.1980184316635132, 0.5511668920516968, 0.24188432097434998, 1.0345845222473145, -0.1272655576467514, 0.3131782114505768, -1.1720478534698486, -0.037950873374938965, 1.2959376573562622, -0.26304343342781067, -0.37768030166625977, -0.08820940554141998, 0.5827919244766235, -0.03781870380043...
SetString sets z to the value of s, interpreted in the given base, and returns z and a boolean indicating success. The entire string (not just a prefix) must be valid for success. If SetString fails, the value of z is undefined but the returned value is nil. The base argument must be 0 or a value between 2 and MaxBase....
[ -0.7967488169670105, -0.4754665493965149, 0.7181583046913147, -0.3382629156112671, -0.8044376373291016, -0.7375265955924988, 0.4989192485809326, -0.47922858595848083, 0.36765405535697937, -0.24138666689395905, -0.42505890130996704, 0.4479060471057892, 0.07605697214603424, -0.44705551862716...
Bytes returns the absolute value of x as a bigendian byte slice.
[ -0.4855819046497345, 0.1623660773038864, 0.9389047622680664, 0.17915287613868713, 0.1493033617734909, 0.4632816016674042, -1.767857313156128, -0.9846453666687012, -0.32228079438209534, -0.12720340490341187, -0.528419017791748, 1.1721092462539673, 0.12330333888530731, 0.12349242717027664, ...
BitLen returns the length of the absolute value of x in bits. The bit length of 0 is 0.
[ 0.15985015034675598, -0.15216340124607086, 0.41809582710266113, 0.29085779190063477, -0.5679230690002441, 2.020752191543579, -0.5636920928955078, -0.31078287959098816, 0.4224482476711273, -0.23393094539642334, -0.5959526300430298, 0.7797133922576904, 0.8211151957511902, 0.6607082486152649,...
TrailingZeroBits returns the number of consecutive least significant zero bits of |x|.
[ 0.8696631789207458, -0.19255611300468445, 0.5242313742637634, 0.5260231494903564, 0.43112537264823914, 0.7748193740844727, 0.6378600597381592, -0.4731521010398865, 0.9292935132980347, -1.0527335405349731, -1.7002391815185547, 0.9994753003120422, -0.23209905624389648, 0.5774287581443787, ...
Exp sets z = xy mod |m| (i.e. the sign of m is ignored), and returns z. If m == nil or m == 0, z = xy unless y 0, y < 0, and x and n are not relatively prime, z is unchanged and nil is returned. Modular exponentiation of inputs of a particular size is not a cryptographically constanttime operation.
[ 0.2547723054885864, 0.03971372917294502, 0.40685519576072693, 0.43055930733680725, -0.504047155380249, -0.5596495866775513, 0.14866577088832855, -1.1061722040176392, 0.8935425281524658, -0.013807450421154499, 0.08159895986318588, -0.159789577126503, -0.9094589352607727, 0.3625946044921875,...
GCD sets z to the greatest common divisor of a and b and returns z. If x or y are not nil, GCD sets their value such that z = ax + by. a and b may be positive, zero or negative. (Before Go 1.14 both had to be > 0.) Regardless of the signs of a and b, z is always >= 0. If a == b == 0, GCD sets z = x = y = 0. If a == 0 a...
[ 0.5384351015090942, -0.35526373982429504, 0.6684974431991577, 0.022317415103316307, 0.29231908917427063, -0.19414912164211273, 0.7566900849342346, -0.4241928458213806, 0.24750269949436188, -0.3975832164287567, 0.7432506084442139, 0.8629903793334961, 0.05130365490913391, 0.06850189715623856...
Rand sets z to a pseudorandom number in [0, n) and returns z. As this uses the math/rand package, it must not be used for securitysensitive work. Use crypto/rand.Int instead.
[ -0.2962833344936371, -0.1046719029545784, 0.18525519967079163, -0.034371517598629, -0.2584458589553833, 0.6007061004638672, 0.8971084952354431, -0.5433382987976074, 0.9926376938819885, -1.095047116279602, 0.07673612982034683, 0.21862177550792694, -0.44293227791786194, 0.293459951877594, ...
Jacobi returns the Jacobi symbol (x/y), either +1, 1, or 0. The y argument must be an odd integer.
[ -1.466195821762085, 0.08917640894651413, 0.4157954752445221, 0.8163367509841919, -0.8948037624359131, 0.4358626902103424, 0.7467681765556335, -1.40072500705719, 0.011828874237835407, -0.3996012210845947, -0.25770941376686096, -0.26977604627609253, 0.30544939637184143, 0.7146065831184387, ...
ModSqrt sets z to a square root of x mod p if such a square root exists, and returns z. The modulus p must be an odd prime. If x is not a square mod p, ModSqrt leaves z unchanged and returns nil. This function panics if p is not an odd integer.
[ 0.12590773403644562, -0.33286502957344055, 0.3546125888824463, -0.2442755103111267, -0.6944855451583862, 0.06838669627904892, -1.3557169437408447, -0.9790633916854858, 1.7895936965942383, -0.6397448778152466, 0.34577062726020813, 0.4154544770717621, -0.893424391746521, 0.22381362318992615,...
Lsh sets z = x << n and returns z.
[ 1.2979425191879272, 0.4523622989654541, 0.1028965637087822, -0.0441439151763916, -0.8305706977844238, 0.7798988819122314, -1.458490014076233, -1.6628801822662354, 0.8808785080909729, -2.0043017864227295, -0.8780625462532043, 0.37353307008743286, 0.5798843502998352, -0.24326764047145844, ...
Rsh sets z = x >> n and returns z.
[ -0.016318337991833687, 0.8971822261810303, 0.03586532548069954, 0.7856433987617493, -0.25376924872398376, -0.10664831846952438, -0.2538376748561859, -1.2825742959976196, 0.5121365785598755, -1.7219816446304321, -1.0059043169021606, 0.6654456257820129, 0.37997543811798096, -0.30032381415367...
Bit returns the value of the i'th bit of x. That is, it returns (x>>i)&1. The bit index i must be >= 0.
[ -1.0758001804351807, 0.3683903217315674, 0.4324575960636139, 0.5359765291213989, -0.391750693321228, 1.0608166456222534, 0.11387143284082413, -1.1981087923049927, -0.20969872176647186, -0.6117194294929504, 0.04645664989948273, 0.6818667650222778, -0.15132386982440948, -0.6714541912078857, ...
SetBit sets z to x, with x's i'th bit set to b (0 or 1). That is, if b is 1 SetBit sets z = x | (1 << i); if b is 0 SetBit sets z = x &^ (1 << i). If b is not 0 or 1, SetBit will panic.
[ -0.24033460021018982, -0.014614712446928024, 0.19499430060386658, 1.7169617414474487, -0.2967379689216614, 1.0130144357681274, 0.5652646422386169, -0.7985057830810547, -0.08718732744455338, -0.19486042857170105, -0.5583243370056152, 0.4002647399902344, -0.23346875607967377, -0.277098655700...
And sets z = x & y and returns z.
[ -0.5116392374038696, -0.9787123799324036, 0.3476684093475342, -0.2831307351589203, -1.032970666885376, -0.1448885053396225, 0.025297360494732857, -1.390407681465149, 0.7767426371574402, -0.6210420727729797, 0.02059679850935936, 1.090160846710205, 0.11606928706169128, -0.5240011811256409, ...
AndNot sets z = x &^ y and returns z.
[ -0.5860886573791504, -0.7876760363578796, 0.2696809768676758, 0.1737319827079773, -0.9471323490142822, 0.35748380422592163, 0.1583186388015747, -0.7842668890953064, 0.2755863070487976, -0.6686111092567444, -0.17875133454799652, 0.6748153567314148, -0.16744816303253174, -0.36814799904823303...
Or sets z = x | y and returns z.
[ -0.3221181631088257, 0.24086521565914154, 0.19871191680431366, 0.3330102562904358, -0.2429897040128708, -0.8081914186477661, -0.44595256447792053, -1.7897177934646606, 0.8267175555229187, -0.7262066602706909, 0.5466511845588684, -0.51904296875, 0.5755120515823364, -0.2934250831604004, -0...
Xor sets z = x ^ y and returns z.
[ -0.3676741123199463, 0.10357746481895447, 0.2854583263397217, 0.3296167850494385, -1.1252031326293945, 0.36206597089767456, -0.9496351480484009, -1.6214193105697632, 0.363704651594162, -0.8716756701469421, -0.26685312390327454, -0.25176188349723816, 0.4678836464881897, -1.1237467527389526,...
Not sets z = ^x and returns z.
[ -0.8704859018325806, 0.19418130815029144, 0.15092812478542328, 1.1168463230133057, -0.21900200843811035, 0.3285137116909027, 0.7068600058555603, -0.19415390491485596, 0.9261959195137024, -1.4150912761688232, -1.1296287775039673, -0.0702533945441246, -0.41574907302856445, -0.581856369972229...
Text returns the string representation of x in the given base. Base must be between 2 and 62, inclusive. The result uses the lowercase letters 'a' to 'z' for digit values 10 to 35, and the uppercase letters 'A' to 'Z' for digit values 36 to 61. No prefix (such as "0x") is added to the string. If x is a nil pointer it r...
[ -0.40423309803009033, -0.23922917246818542, 0.6453697085380554, -0.36120375990867615, -1.2151058912277222, 0.20157110691070557, -0.7789956331253052, -0.7692806720733643, 0.6523488759994507, 0.17553527653217316, -0.3906796872615814, 0.16205835342407227, -0.4532138407230377, -0.3800324499607...
Append appends the string representation of x, as generated by x.Text(base), to buf and returns the extended buffer.
[ 0.3762076199054718, -0.10603690892457962, 0.33290165662765503, -0.2866719663143158, -1.331963300704956, 0.6124212741851807, -1.4361385107040405, -0.24049581587314606, 0.10161936283111572, -0.48224517703056335, -1.274641752243042, 0.11485543102025986, -0.39220303297042847, -0.15744055807590...
String returns the decimal representation of x as generated by x.Text(10).
[ 0.3723129332065582, -0.03111722134053707, 0.36496976017951965, -1.2458964586257935, 0.4325990080833435, 0.09976956993341446, -0.32286471128463745, -0.6130797863006592, 0.7387264370918274, 0.18776683509349823, -0.5855129957199097, -0.3500813841819763, 0.9670809507369995, -1.1390644311904907...
Format implements fmt.Formatter. It accepts the formats 'b' (binary), 'o' (octal with 0 prefix), 'O' (octal with 0o prefix), 'd' (decimal), 'x' (lowercase hexadecimal), and 'X' (uppercase hexadecimal). Also supported are the full suite of package fmt's format flags for integral types, including '+' and ' ' for sign con...
[ 0.32735398411750793, -0.7762205600738525, 0.7404400110244751, -0.6858952045440674, -0.7697693705558777, 0.28711220622062683, -0.05232641100883484, -0.5842870473861694, 0.37361082434654236, -0.5105006098747253, 0.2971287965774536, -0.6732056736946106, 0.3740512430667877, 0.3988746702671051,...
Scan is a support routine for fmt.Scanner; it sets z to the value of the scanned number. It accepts the formats 'b' (binary), 'o' (octal), 'd' (decimal), 'x' (lowercase hexadecimal), and 'X' (uppercase hexadecimal).
[ -0.7653355002403259, -0.6861302852630615, 0.3708800971508026, 0.16128157079219818, -1.5121618509292603, 0.02587614208459854, 0.6228129863739014, -0.2807525098323822, 0.40272659063339233, -1.5923181772232056, -0.5440346002578735, 0.6370500922203064, 0.3973408639431, 0.07298155874013901, 0...
GobDecode implements the gob.GobDecoder interface.
[ 0.7107513546943665, 0.11815249919891357, 0.6597821116447449, 0.6156323552131653, 0.9419922828674316, 1.0140188932418823, -0.5107765793800354, 0.19497719407081604, -0.7783728241920471, 0.2851579785346985, -0.04462627321481705, 0.32724469900131226, -0.6383293867111206, 0.4830018877983093, ...
MarshalText implements the encoding.TextMarshaler interface.
[ 0.8711360692977905, 0.5639380216598511, 0.16958430409431458, -0.1984439194202423, -0.9549161195755005, 0.7171601057052612, -1.3826640844345093, 0.3425257205963135, 0.5006228089332581, -0.3596477210521698, 0.02080359123647213, -0.9834766387939453, -0.21860820055007935, -0.23142719268798828,...
UnmarshalText implements the encoding.TextUnmarshaler interface.
[ 0.45341289043426514, 1.0202261209487915, 0.3614705204963684, -0.9319493174552917, -1.0338616371154785, 0.06872012466192245, -0.33995845913887024, 0.9616766571998596, -0.295364111661911, 0.2739446461200714, -0.05645989626646042, -1.2061195373535156, -0.19304390251636505, -0.4308461546897888...
The JSON marshalers are only here for API backward compatibility (programs that explicitly look for these two methods). JSON works fine with the TextMarshaler only. MarshalJSON implements the json.Marshaler interface.
[ -0.039036110043525696, -0.7960191965103149, 0.30666589736938477, -0.4460161626338959, -1.1790509223937988, -0.23219221830368042, -0.38941490650177, 0.42273589968681335, 0.00870941486209631, -0.42683863639831543, -0.34299570322036743, 0.43225574493408203, 0.35876625776290894, 1.775667190551...
UnmarshalJSON implements the json.Unmarshaler interface.
[ -1.0032607316970825, -0.16947032511234283, 0.29761412739753723, -1.487724781036377, -0.9937031865119934, -0.06185583397746086, 0.43505609035491943, 0.277748167514801, 0.13359302282333374, -0.3068290054798126, -0.5746948719024658, -0.2102772295475006, 0.6094662547111511, 0.5926952958106995,...
NewRat creates a new Rat with numerator a and denominator b.
[ 0.5495340824127197, -0.7799025177955627, 0.4179784655570984, -1.5655975341796875, 0.504297137260437, 0.1685943305492401, -0.658530056476593, -1.3896280527114868, -0.5436480641365051, -1.286163091659546, 1.0755963325500488, 0.2193690538406372, 0.6496020555496216, -0.9534371495246887, -0.3...
SetFloat64 sets z to exactly f and returns z. If f is not finite, SetFloat returns nil.
[ -0.016954848542809486, 0.7219998836517334, 0.2322356253862381, 1.784376621246338, 0.7458710670471191, -0.887208878993988, 1.291495680809021, 0.034327439963817596, 0.4431043267250061, -1.6207698583602905, -0.0015646587125957012, -0.587598979473114, -0.05398434028029442, 1.0991935729980469, ...
Float32 returns the nearest float32 value for x and a bool indicating whether f represents x exactly. If the magnitude of x is too large to be represented by a float32, f is an infinity and exact is false. The sign of f always matches the sign of x, even if f == 0.
[ 0.43681663274765015, 0.4487893581390381, 0.7499765753746033, -0.4426584839820862, -0.6612131595611572, 0.7879416346549988, -0.5503186583518982, -0.8056931495666504, -0.6442062854766846, -0.1678018867969513, -0.41009119153022766, -0.04775603115558624, 0.559384822845459, 0.9410227537155151, ...
Float64 returns the nearest float64 value for x and a bool indicating whether f represents x exactly. If the magnitude of x is too large to be represented by a float64, f is an infinity and exact is false. The sign of f always matches the sign of x, even if f == 0.
[ 0.006876837462186813, -0.003445737063884735, 0.590980589389801, 0.15612617135047913, -0.5802454948425293, 0.14028850197792053, -0.4634103775024414, -0.47795170545578003, -0.49222713708877563, -0.0995970070362091, -0.28113865852355957, -0.11534464359283447, 0.6877493858337402, 1.00076401233...
SetFrac sets z to a/b and returns z. If b == 0, SetFrac panics.
[ 0.9446834921836853, 0.30058008432388306, 0.14262497425079346, 1.541542649269104, 0.13862605392932892, -0.42489832639694214, 1.515002965927124, -1.0688698291778564, 0.17646491527557373, -1.455483078956604, 0.8374183177947998, -0.353965699672699, 0.2260008603334427, 0.22323328256607056, -0...
SetFrac64 sets z to a/b and returns z. If b == 0, SetFrac64 panics.
[ 0.46070635318756104, 0.33724966645240784, 0.1960962861776352, 1.9814858436584473, 0.32942843437194824, -0.7318500280380249, 1.4840012788772583, -0.7837963104248047, 0.5658125281333923, -1.3078711032867432, 0.570793867111206, -1.234055757522583, -0.09689880162477493, 0.24393869936466217, ...
SetInt sets z to x (by making a copy of x) and returns z.
[ -0.36159637570381165, -0.4762016832828522, 0.33958426117897034, 0.022052651271224022, -0.9632375836372375, 0.3165093660354614, 0.2820330262184143, -1.5998722314834595, 0.6722936034202576, -0.2752138674259186, -1.075279712677002, 0.5112954378128052, 0.1589897871017456, -0.9288986325263977, ...
SetInt64 sets z to x and returns z.
[ -1.2966591119766235, -0.0950106531381607, 0.12747325003147125, 1.1477340459823608, -0.48589223623275757, -0.26982632279396057, 0.4444997310638428, -0.6263194680213928, 0.995998740196228, -0.543229877948761, -0.86307293176651, -0.21754877269268036, -0.3765404522418976, -0.07306718826293945,...
SetUint64 sets z to x and returns z.
[ -0.9332455396652222, -0.23066306114196777, 0.1468970775604248, 0.5959688425064087, -0.2657977342605591, -0.09829189628362656, 0.20354793965816498, 0.04807520657777786, 1.1553324460983276, -1.0595024824142456, -0.6819025278091431, -0.5435329675674438, 0.8191655874252319, -0.2269266843795776...
Set sets z to x (by making a copy of x) and returns z.
[ -0.40234634280204773, -0.4899923801422119, 0.3332439661026001, 0.07771223038434982, -0.9101852178573608, 0.5529859066009521, 0.41987738013267517, -1.2239656448364258, 0.9697244167327881, -0.4831770658493042, -0.5870176553726196, 1.2011147737503052, 0.7118834257125854, -1.462912678718567, ...
Abs sets z to |x| (the absolute value of x) and returns z.
[ -0.7987866997718811, -0.772025465965271, 0.3882993459701538, 0.17742514610290527, -0.7043838500976562, 0.38636213541030884, -0.5737259984016418, -0.5874021649360657, 0.8232080936431885, -1.1085923910140991, -0.7960434556007385, 1.2806758880615234, 1.1997156143188477, -0.2324543595314026, ...
Neg sets z to x and returns z.
[ -1.057159662246704, -0.3077830374240875, 0.19139477610588074, 0.38172709941864014, -0.30681222677230835, 0.6754990220069885, -0.17783650755882263, -0.4434668719768524, 0.6425372958183289, -0.9788927435874939, -0.9559772610664368, 0.21839283406734467, 0.2470264881849289, -0.0127485692501068...
Inv sets z to 1/x and returns z. If x == 0, Inv panics.
[ 0.10509315133094788, 0.087692990899086, 0.30543074011802673, 1.4766756296157837, -0.7059734463691711, 0.8776431083679199, 0.26005059480667114, -0.1967148631811142, -0.2638983130455017, -0.4264680743217468, -0.7735368609428406, 0.6570752263069153, -0.47052711248397827, -0.5446287989616394, ...
Sign returns: 1 if x 0
[ -0.6180213689804077, 0.1351984739303589, 0.6667154431343079, 1.2213600873947144, 0.25885844230651855, -0.26952075958251953, -0.48463910818099976, 0.00006370885239448398, 0.3245047330856323, -0.5522136092185974, -0.32534655928611755, -0.7054082751274109, -0.35940420627593994, 0.455680072307...
IsInt reports whether the denominator of x is 1.
[ -0.3804967403411865, 0.6007256507873535, 0.19505219161510468, 0.5766340494155884, 0.3173636794090271, -0.216815784573555, -0.520173966884613, -1.1248356103897095, 0.5606176257133484, -0.6241002678871155, -0.5111881494522095, -0.04793393611907959, -0.6712269186973572, -0.5919367074966431, ...
Num returns the numerator of x; it may be <= 0. The result is a reference to x's numerator; it may change if a new value is assigned to x, and vice versa. The sign of the numerator corresponds to the sign of x.
[ -0.6973378658294678, 0.3226398527622223, 0.328887015581131, 1.023064136505127, -0.6288931965827942, -0.8072835803031921, -0.1866421103477478, -0.5775827169418335, 1.0654196739196777, -1.5451828241348267, 0.10752373188734055, 0.7739090323448181, 0.45542916655540466, -0.06822875142097473, ...
Denom returns the denominator of x; it is always > 0. The result is a reference to x's denominator, unless x is an uninitialized (zero value) Rat, in which case the result is a new Int of value 1. (To initialize x, any operation that sets x will do, including x.Set(x).) If the result is a reference to x's denominator i...
[ -0.40465354919433594, 0.41890060901641846, 0.7484224438667297, 0.336438924074173, -0.2479362189769745, -0.5703170895576477, 0.14146080613136292, -0.9398472905158997, 1.1298197507858276, -1.2261542081832886, 0.3240797519683838, 0.5800301432609558, 0.09993334114551544, 0.09334240108728409, ...
Cmp compares x and y and returns: 1 if x y
[ 0.16926264762878418, -0.023440752178430557, 0.5668511986732483, -0.18658466637134552, 0.4154578149318695, 0.3855573236942291, -0.8821213245391846, -1.1531168222427368, -0.06966953724622726, -0.006680249236524105, 0.41472458839416504, -0.08264000713825226, -0.08031637966632843, -0.309680283...
Add sets z to the sum x+y and returns z.
[ -0.003213474527001381, -0.6656641364097595, 0.3866833746433258, 0.3198888301849365, -0.6500879526138306, 0.3559953272342682, 0.17070674896240234, -1.419277548789978, 1.4642685651779175, -0.679559588432312, -0.27020716667175293, 0.7156282067298889, -0.02915540710091591, -0.7531640529632568,...
Sub sets z to the difference xy and returns z.
[ -0.1514379382133484, -0.27018940448760986, 0.11759769171476364, 0.4475867748260498, -0.8968065977096558, 0.16316597163677216, 0.7493063807487488, -1.1963598728179932, 0.26047858595848083, -0.748736560344696, -0.8689972758293152, 0.22843389213085175, -0.02003093622624874, -0.842379510402679...
Mul sets z to the product xy and returns z.
[ -0.5382682085037231, 0.5179868340492249, 0.03846710920333862, 0.5532268285751343, 0.250573068857193, 0.0377473421394825, 0.3247285783290863, -1.6724379062652588, 1.224974513053894, -0.21086767315864563, -0.5956551432609558, -0.03752870857715607, 0.7053834199905396, -0.5413806438446045, 0...
Quo sets z to the quotient x/y and returns z. If y == 0, Quo panics.
[ 0.1646445095539093, -0.16402670741081238, 0.38085249066352844, 0.932763397693634, -0.36240094900131226, 0.5147494673728943, 0.4321712255477905, -1.6865746974945068, 0.3393501341342926, -0.6351837515830994, 0.08121541887521744, -0.5449116230010986, 0.17676152288913727, -0.1407579928636551, ...
Scan is a support routine for fmt.Scanner. It accepts the formats 'e', 'E', 'f', 'F', 'g', 'G', and 'v'. All formats are equivalent.
[ -0.6036719083786011, -0.33613526821136475, 0.442207008600235, 0.029902730137109756, -0.8794177174568176, -0.1974366158246994, -0.23284085094928741, -0.6995498538017273, 0.2524160146713257, -0.6567702889442444, -0.134330153465271, 0.024839624762535095, 0.2013152539730072, 0.4161019623279571...
RatString returns a string representation of x in the form "a/b" if b != 1, and in the form "a" if b == 1.
[ -0.9526146650314331, 0.219747856259346, 0.3352992534637451, -1.0063414573669434, -0.3489353060722351, 0.7757287621498108, -0.6561229825019836, -1.6896721124649048, 0.366173654794693, 0.2139131724834442, 1.2460910081863403, -0.16826775670051575, -0.09835803508758545, -0.13192105293273926, ...
FloatString returns a string representation of x in decimal form with prec digits of precision after the radix point. The last digit is rounded to nearest, with halves rounded away from zero.
[ 0.752929151058197, -0.0683322623372078, 0.5639814734458923, -0.9859631657600403, -0.12934385240077972, 0.4713914096355438, -0.144621342420578, -1.5012868642807007, -0.351467102766037, -0.7221488952636719, 0.5921036005020142, 0.10929767042398453, 0.39255234599113464, -0.43641790747642517, ...
GobEncode implements the gob.GobEncoder interface.
[ 0.2304522693157196, 0.4109225571155548, 0.424091637134552, 1.359032154083252, 1.2400875091552734, 0.26517781615257263, -0.629387378692627, 0.21304632723331451, -0.7149900794029236, 0.6851586699485779, -0.49895739555358887, 0.9533562660217285, -1.050963282585144, 0.8832377195358276, -0.31...
GobDecode implements the gob.GobDecoder interface.
[ 0.7107523679733276, 0.11815134435892105, 0.659783124923706, 0.6156328916549683, 0.9419922828674316, 1.0140196084976196, -0.5107770562171936, 0.19497764110565186, -0.7783728837966919, 0.2851583659648895, -0.04462737962603569, 0.32724592089653015, -0.6383280754089355, 0.483004093170166, 0....
MarshalText implements the encoding.TextMarshaler interface.
[ 0.8711360692977905, 0.5639380216598511, 0.16958430409431458, -0.1984439194202423, -0.9549161195755005, 0.7171601057052612, -1.3826640844345093, 0.3425257205963135, 0.5006228089332581, -0.3596477210521698, 0.02080359123647213, -0.9834766387939453, -0.21860820055007935, -0.23142719268798828,...
UnmarshalText implements the encoding.TextUnmarshaler interface.
[ 0.4534120261669159, 1.0202256441116333, 0.36147022247314453, -0.931950032711029, -1.033862829208374, 0.0687200054526329, -0.3399587869644165, 0.9616751074790955, -0.2953641414642334, 0.2739430069923401, -0.056459371000528336, -1.2061201333999634, -0.1930457353591919, -0.43084517121315, -...
Sqrt sets z to the rounded square root of x, and returns it. If z's precision is 0, it is changed to x's precision before the operation. Rounding is performed according to z's precision and rounding mode. The function panics if z < 0. The value of z is undefined in that case.
[ 0.39742493629455566, -0.851521372795105, 0.400427907705307, 0.3269064128398895, -0.7861486077308655, -0.20203755795955658, -0.15134161710739136, -0.9754136800765991, 1.2755184173583984, -0.7799913287162781, 0.44115346670150757, 0.4988228678703308, -0.4108772277832031, -0.001171571668237447...
Join some strings to create a single string
[ 0.6380603313446045, -0.6000056862831116, 0.4687124788761139, 0.48413383960723877, 0.3274763226509094, 1.0648820400238037, -0.7383477687835693, -0.4722997844219208, -0.7500551342964172, -0.7364604473114014, 0.7403594255447388, -0.5318500399589539, -1.009004831314087, -0.29289689660072327, ...