tx · AimrLN28fwqEDpBisXb3Nb48NszWdUyByNdxCuH1DULp

3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37:  -0.01000000 Waves

2023.03.17 12:57 [2493850] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves

{ "type": 13, "id": "AimrLN28fwqEDpBisXb3Nb48NszWdUyByNdxCuH1DULp", "fee": 1000000, "feeAssetId": null, "timestamp": 1679047063153, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "2L1JRbFcEmj2oQPSBcgQn6pcM8EvZxE8cynC7detNocqRN5LJye3tJmbPiqjogJfQ1sudStmpP7BnPrNKGWpkgsq" ], "script": "base64:BgIHCAISAwoBCAIAB01VTFQxOFgJAKcDAQITMTAwMDAwMDAwMDAwMDAwMDAwMAAERTE4WAkApwMBAhMyNzE4MjgxODI4NDU5MDQ1MjM1AQFpAQVnYW1tYQEEelN0cgQBegkApwMBBQR6U3RyBARleHB6CQB2BgUERTE4WAASCQC+AgEFAXoAEgASBQZIQUxGVVAKAQVjaGFpbgIDYWNjAWkJALgCAgkAtwICBQF6CQC2AgEJAGUCCQBkAgUBaQUBaQABCQC8AgMJALYCAQkAaAIFAWkFAWkFB01VTFQxOFgFA2FjYwQBZgoAAiRsCQDMCAIACwkAzAgCAAoJAMwIAgAJCQDMCAIACAkAzAgCAAcJAMwIAgAGCQDMCAIABQkAzAgCAAQJAMwIAgADCQDMCAIAAgkAzAgCAAEFA25pbAoAAiRzCQCQAwEFAiRsCgAFJGFjYzAJALYCAQABCgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQVjaGFpbgIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQIVTGlzdCBz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FJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEAYgBjAGQEAWcJALwCAwUEZXhwegUHTVVMVDE4WAUBZgkAlAoCBQNuaWwJAKYDAQUBZwCdXeCu", "height": 2493850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J9rAYveNmtqUb22b1erQyymg3EXJkTtERvpqjvXhfLKX Next: 4LCa3XyyMHVNqs47eXvENp1dFHTXKBTo2sxSHcNARZGG Diff:
OldNewDifferences
66 let E18X = parseBigIntValue("2718281828459045235")
77
88 @Callable(i)
9-func gamma (z) = {
10- let expz = pow(E18X, 18, -(parseBigIntValue(z)), 18, 18, HALFUP)
11- func chain (acc,i) = (toBigInt(((i + i) - 1)) - fraction(toBigInt((i * i)), MULT18X, acc))
9+func gamma (zStr) = {
10+ let z = parseBigIntValue(zStr)
11+ let expz = pow(E18X, 18, -(z), 18, 18, HALFUP)
12+ func chain (acc,i) = ((z + toBigInt(((i + i) - 1))) - fraction(toBigInt((i * i)), MULT18X, acc))
1213
1314 let f = {
1415 let $l = [11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let MULT18X = parseBigIntValue("1000000000000000000")
55
66 let E18X = parseBigIntValue("2718281828459045235")
77
88 @Callable(i)
9-func gamma (z) = {
10- let expz = pow(E18X, 18, -(parseBigIntValue(z)), 18, 18, HALFUP)
11- func chain (acc,i) = (toBigInt(((i + i) - 1)) - fraction(toBigInt((i * i)), MULT18X, acc))
9+func gamma (zStr) = {
10+ let z = parseBigIntValue(zStr)
11+ let expz = pow(E18X, 18, -(z), 18, 18, HALFUP)
12+ func chain (acc,i) = ((z + toBigInt(((i + i) - 1))) - fraction(toBigInt((i * i)), MULT18X, acc))
1213
1314 let f = {
1415 let $l = [11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
1516 let $s = size($l)
1617 let $acc0 = toBigInt(1)
1718 func $f0_1 ($a,$i) = if (($i >= $s))
1819 then $a
1920 else chain($a, $l[$i])
2021
2122 func $f0_2 ($a,$i) = if (($i >= $s))
2223 then $a
2324 else throw("List size exceeds 100")
2425
2526 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
2627 }
2728 let g = fraction(expz, MULT18X, f)
2829 $Tuple2(nil, toString(g))
2930 }
3031
3132

github/deemru/w8io/026f985 
40.82 ms