Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
4 3 2 3 100 *** at top-level: hammingweight(I) *** ^---------------- *** hammingweight: incorrect type in hammingweight (t_COMPLEX). [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0] #bitand [0, 0, 0] [0, 3, 0] [0, -3, 0] [0, 36893488147419103231, 0] [0, 340282366920938463481821351505477763073, 0] [0, -340282366920938463481821351505477763073, 0] [0, I, error("forbidden bitwise and t_INT , t_COMPLEX.")] [3, 3, 3] [3, -3, 1] [3, 36893488147419103231, 3] [3, 340282366920938463481821351505477763073, 1] [3, -340282366920938463481821351505477763073, 3] [3, I, error("forbidden bitwise and t_INT , t_COMPLEX.")] [-3, -3, -3] [-3, 36893488147419103231, 36893488147419103229] [-3, 340282366920938463481821351505477763073, 340282366920938463481821351505 477763073] [-3, -340282366920938463481821351505477763073, -3402823669209384634818213515 05477763075] [-3, I, error("forbidden bitwise and t_INT , t_COMPLEX.")] [36893488147419103231, 36893488147419103231, 36893488147419103231] [36893488147419103231, 340282366920938463481821351505477763073, 184467440737 09551617] [36893488147419103231, -340282366920938463481821351505477763073, 18446744073 709551615] [36893488147419103231, I, error("forbidden bitwise and t_INT , t_COMPLEX.")] [340282366920938463481821351505477763073, 3402823669209384634818213515054777 63073, 340282366920938463481821351505477763073] [340282366920938463481821351505477763073, -340282366920938463481821351505477 763073, 1] [340282366920938463481821351505477763073, I, error("forbidden bitwise and t_ INT , t_COMPLEX.")] [-340282366920938463481821351505477763073, -34028236692093846348182135150547 7763073, -340282366920938463481821351505477763073] [-340282366920938463481821351505477763073, I, error("forbidden bitwise and t _INT , t_COMPLEX.")] [I, I, error("forbidden bitwise and t_COMPLEX , t_COMPLEX.")] #bitnegimply [0, 0, 0] [0, 3, 0] [0, -3, 0] [0, 36893488147419103231, 0] [0, 340282366920938463481821351505477763073, 0] [0, -340282366920938463481821351505477763073, 0] [0, I, error("forbidden bitwise negated imply t_INT , t_COMPLEX.")] [3, 3, 0] [3, -3, 2] [3, 36893488147419103231, 0] [3, 340282366920938463481821351505477763073, 2] [3, -340282366920938463481821351505477763073, 0] [3, I, error("forbidden bitwise negated imply t_INT , t_COMPLEX.")] [-3, -3, 0] [-3, 36893488147419103231, -36893488147419103232] [-3, 340282366920938463481821351505477763073, -34028236692093846348182135150 5477763076] [-3, -340282366920938463481821351505477763073, 34028236692093846348182135150 5477763072] [-3, I, error("forbidden bitwise negated imply t_INT , t_COMPLEX.")] [36893488147419103231, 36893488147419103231, 0] [36893488147419103231, 340282366920938463481821351505477763073, 184467440737 09551614] [36893488147419103231, -340282366920938463481821351505477763073, 18446744073 709551616] [36893488147419103231, I, error("forbidden bitwise negated imply t_INT , t_C OMPLEX.")] [340282366920938463481821351505477763073, 3402823669209384634818213515054777 63073, 0] [340282366920938463481821351505477763073, -340282366920938463481821351505477 763073, 340282366920938463481821351505477763072] [340282366920938463481821351505477763073, I, error("forbidden bitwise negate d imply t_INT , t_COMPLEX.")] [-340282366920938463481821351505477763073, -34028236692093846348182135150547 7763073, 0] [-340282366920938463481821351505477763073, I, error("forbidden bitwise negat ed imply t_INT , t_COMPLEX.")] [I, I, error("forbidden bitwise negated imply t_COMPLEX , t_COMPLEX.")] #bitor [0, 0, 0] [0, 3, 3] [0, -3, -3] [0, 36893488147419103231, 36893488147419103231] [0, 340282366920938463481821351505477763073, 3402823669209384634818213515054 77763073] [0, -340282366920938463481821351505477763073, -34028236692093846348182135150 5477763073] [0, I, error("forbidden bitwise or t_INT , t_COMPLEX.")] [3, 3, 3] [3, -3, -1] [3, 36893488147419103231, 36893488147419103231] [3, 340282366920938463481821351505477763073, 3402823669209384634818213515054 77763075] [3, -340282366920938463481821351505477763073, -34028236692093846348182135150 5477763073] [3, I, error("forbidden bitwise or t_INT , t_COMPLEX.")] [-3, -3, -3] [-3, 36893488147419103231, -1] [-3, 340282366920938463481821351505477763073, -3] [-3, -340282366920938463481821351505477763073, -1] [-3, I, error("forbidden bitwise or t_INT , t_COMPLEX.")] [36893488147419103231, 36893488147419103231, 36893488147419103231] [36893488147419103231, 340282366920938463481821351505477763073, 340282366920 938463500268095579187314687] [36893488147419103231, -340282366920938463481821351505477763073, -3402823669 20938463463374607431768211457] [36893488147419103231, I, error("forbidden bitwise or t_INT , t_COMPLEX.")] [340282366920938463481821351505477763073, 3402823669209384634818213515054777 63073, 340282366920938463481821351505477763073] [340282366920938463481821351505477763073, -340282366920938463481821351505477 763073, -1] [340282366920938463481821351505477763073, I, error("forbidden bitwise or t_I NT , t_COMPLEX.")] [-340282366920938463481821351505477763073, -34028236692093846348182135150547 7763073, -340282366920938463481821351505477763073] [-340282366920938463481821351505477763073, I, error("forbidden bitwise or t_ INT , t_COMPLEX.")] [I, I, error("forbidden bitwise or t_COMPLEX , t_COMPLEX.")] #bitxor [0, 0, 0] [0, 3, 3] [0, -3, -3] [0, 36893488147419103231, 36893488147419103231] [0, 340282366920938463481821351505477763073, 3402823669209384634818213515054 77763073] [0, -340282366920938463481821351505477763073, -34028236692093846348182135150 5477763073] [0, I, error("forbidden bitwise xor t_INT , t_COMPLEX.")] [3, 3, 0] [3, -3, -2] [3, 36893488147419103231, 36893488147419103228] [3, 340282366920938463481821351505477763073, 3402823669209384634818213515054 77763074] [3, -340282366920938463481821351505477763073, -34028236692093846348182135150 5477763076] [3, I, error("forbidden bitwise xor t_INT , t_COMPLEX.")] [-3, -3, 0] [-3, 36893488147419103231, -36893488147419103230] [-3, 340282366920938463481821351505477763073, -34028236692093846348182135150 5477763076] [-3, -340282366920938463481821351505477763073, 34028236692093846348182135150 5477763074] [-3, I, error("forbidden bitwise xor t_INT , t_COMPLEX.")] [36893488147419103231, 36893488147419103231, 0] [36893488147419103231, 340282366920938463481821351505477763073, 340282366920 938463481821351505477763070] [36893488147419103231, -340282366920938463481821351505477763073, -3402823669 20938463481821351505477763072] [36893488147419103231, I, error("forbidden bitwise xor t_INT , t_COMPLEX.")] [340282366920938463481821351505477763073, 3402823669209384634818213515054777 63073, 0] [340282366920938463481821351505477763073, -340282366920938463481821351505477 763073, -2] [340282366920938463481821351505477763073, I, error("forbidden bitwise xor t_ INT , t_COMPLEX.")] [-340282366920938463481821351505477763073, -34028236692093846348182135150547 7763073, 0] [-340282366920938463481821351505477763073, I, error("forbidden bitwise xor t _INT , t_COMPLEX.")] [I, I, error("forbidden bitwise xor t_COMPLEX , t_COMPLEX.")] #bitneg [0, 36893488147419103231, -1] [3, 36893488147419103228, -4] [-3, 2, 2] [36893488147419103231, 0, -36893488147419103232] [340282366920938463481821351505477763073, 18446744073709551614, -34028236692 0938463481821351505477763074] [-340282366920938463481821351505477763073, 18446744073709551616, 34028236692 0938463481821351505477763072] error("incorrect type in bitwise negation (t_COMPLEX).") 1 1 *** at top-level: bitneg(1,-2) *** ^------------ *** bitneg: domain error in bitwise negation: exponent < -1 340282366920938463463374607431768211454 Total time spent: 0