source stringclasses 2 values | version stringclasses 2 values | module stringclasses 53 values | function stringclasses 318 values | input stringlengths 3 496 | expected stringlengths 0 876 | signature stringclasses 41 values |
|---|---|---|---|---|---|---|
cpython | 3.10 | _pydecimal | Context.min_mag | >>> ExtendedContext.min_mag(1, -2) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.min_mag | >>> ExtendedContext.min_mag(Decimal(1), -2) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.min_mag | >>> ExtendedContext.min_mag(1, Decimal(-2)) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.minus | >>> ExtendedContext.minus(Decimal('1.3')) | Decimal('-1.3') | null |
cpython | 3.10 | _pydecimal | Context.minus | >>> ExtendedContext.minus(Decimal('-1.3')) | Decimal('1.3') | null |
cpython | 3.10 | _pydecimal | Context.minus | >>> ExtendedContext.minus(1) | Decimal('-1') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(Decimal('1.20'), Decimal('3')) | Decimal('3.60') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(Decimal('7'), Decimal('3')) | Decimal('21') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(Decimal('0.9'), Decimal('0.8')) | Decimal('0.72') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(Decimal('0.9'), Decimal('-0')) | Decimal('-0.0') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(Decimal('654321'), Decimal('654321')) | Decimal('4.28135971E+11') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(7, 7) | Decimal('49') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(Decimal(7), 7) | Decimal('49') | null |
cpython | 3.10 | _pydecimal | Context.multiply | >>> ExtendedContext.multiply(7, Decimal(7)) | Decimal('49') | null |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> ExtendedContext.next_minus(Decimal('1')) | Decimal('0.999999999') | null |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> c.next_minus(Decimal('1E-1007')) | Decimal('0E-1007') | null |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> ExtendedContext.next_minus(Decimal('-1.00000003')) | Decimal('-1.00000004') | null |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> c.next_minus(Decimal('Infinity')) | Decimal('9.99999999E+999') | null |
cpython | 3.10 | _pydecimal | Context.next_minus | >>> c.next_minus(1) | Decimal('0.999999999') | null |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> ExtendedContext.next_plus(Decimal('1')) | Decimal('1.00000001') | null |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> c.next_plus(Decimal('-1E-1007')) | Decimal('-0E-1007') | null |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> ExtendedContext.next_plus(Decimal('-1.00000003')) | Decimal('-1.00000002') | null |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> c.next_plus(Decimal('-Infinity')) | Decimal('-9.99999999E+999') | null |
cpython | 3.10 | _pydecimal | Context.next_plus | >>> c.next_plus(1) | Decimal('1.00000001') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('1'), Decimal('2')) | Decimal('1.00000001') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('-1E-1007'), Decimal('1')) | Decimal('-0E-1007') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('-1.00000003'), Decimal('0')) | Decimal('-1.00000002') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('1'), Decimal('0')) | Decimal('0.999999999') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('1E-1007'), Decimal('-100')) | Decimal('0E-1007') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('-1.00000003'), Decimal('-10')) | Decimal('-1.00000004') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal('0.00'), Decimal('-0.0000')) | Decimal('-0.00') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(0, 1) | Decimal('1E-1007') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(Decimal(0), 1) | Decimal('1E-1007') | null |
cpython | 3.10 | _pydecimal | Context.next_toward | >>> c.next_toward(0, Decimal(1)) | Decimal('1E-1007') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(Decimal('2.1')) | Decimal('2.1') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(Decimal('-2.0')) | Decimal('-2') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(Decimal('1.200')) | Decimal('1.2') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(Decimal('-120')) | Decimal('-1.2E+2') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(Decimal('120.00')) | Decimal('1.2E+2') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(Decimal('0.00')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.normalize | >>> ExtendedContext.normalize(6) | Decimal('6') | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('Infinity')) | '+Infinity' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('1E-10')) | '+Normal' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('2.50')) | '+Normal' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('0.1E-999')) | '+Subnormal' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('0')) | '+Zero' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('-0')) | '-Zero' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('-0.1E-999')) | '-Subnormal' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('-1E-10')) | '-Normal' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('-2.50')) | '-Normal' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('-Infinity')) | '-Infinity' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('NaN')) | 'NaN' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('-NaN')) | 'NaN' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(Decimal('sNaN')) | 'sNaN' | null |
cpython | 3.10 | _pydecimal | Context.number_class | >>> c.number_class(123) | '+Normal' | null |
cpython | 3.10 | _pydecimal | Context.plus | >>> ExtendedContext.plus(Decimal('1.3')) | Decimal('1.3') | null |
cpython | 3.10 | _pydecimal | Context.plus | >>> ExtendedContext.plus(Decimal('-1.3')) | Decimal('-1.3') | null |
cpython | 3.10 | _pydecimal | Context.plus | >>> ExtendedContext.plus(-1) | Decimal('-1') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.power | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.power | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('2'), Decimal('3')) | Decimal('8') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-2'), Decimal('3')) | Decimal('-8') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('2'), Decimal('-3')) | Decimal('0.125') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('1.7'), Decimal('8')) | Decimal('69.7575744') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('10'), Decimal('0.301029996')) | Decimal('2.00000000') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('Infinity'), Decimal('-1')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('Infinity'), Decimal('0')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('Infinity'), Decimal('1')) | Decimal('Infinity') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-Infinity'), Decimal('-1')) | Decimal('-0') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-Infinity'), Decimal('0')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-Infinity'), Decimal('1')) | Decimal('-Infinity') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-Infinity'), Decimal('2')) | Decimal('Infinity') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('0'), Decimal('0')) | Decimal('NaN') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('3'), Decimal('7'), Decimal('16')) | Decimal('11') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-3'), Decimal('7'), Decimal('16')) | Decimal('-11') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-3'), Decimal('8'), Decimal('16')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('3'), Decimal('7'), Decimal('-16')) | Decimal('11') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('23E12345'), Decimal('67E189'), Decimal('123456789')) | Decimal('11729830') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-0'), Decimal('17'), Decimal('1729')) | Decimal('-0') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> c.power(Decimal('-23'), Decimal('0'), Decimal('65537')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> ExtendedContext.power(7, 7) | Decimal('823543') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> ExtendedContext.power(Decimal(7), 7) | Decimal('823543') | null |
cpython | 3.10 | _pydecimal | Context.power | >>> ExtendedContext.power(7, Decimal(7), 2) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.quantize | >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('0.001')) | Decimal('2.170') | null |
cpython | 3.10 | _pydecimal | Context.quantize | >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('0.01')) | Decimal('2.17') | null |
cpython | 3.10 | _pydecimal | Context.quantize | >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('0.1')) | Decimal('2.2') | null |
cpython | 3.10 | _pydecimal | Context.quantize | >>> ExtendedContext.quantize(Decimal('2.17'), Decimal('1e+0')) | Decimal('2') | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.