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.is_signed | >>> ExtendedContext.is_signed(-8) | True | null |
cpython | 3.10 | _pydecimal | Context.is_snan | >>> ExtendedContext.is_snan(Decimal('2.50')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_snan | >>> ExtendedContext.is_snan(Decimal('NaN')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_snan | >>> ExtendedContext.is_snan(Decimal('sNaN')) | True | null |
cpython | 3.10 | _pydecimal | Context.is_snan | >>> ExtendedContext.is_snan(1) | False | null |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.is_subnormal(Decimal('2.50')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.is_subnormal(Decimal('0.1E-999')) | True | null |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.is_subnormal(Decimal('0.00')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.is_subnormal(Decimal('-Inf')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.is_subnormal(Decimal('NaN')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_subnormal | >>> c.is_subnormal(1) | False | null |
cpython | 3.10 | _pydecimal | Context.is_zero | >>> ExtendedContext.is_zero(Decimal('0')) | True | null |
cpython | 3.10 | _pydecimal | Context.is_zero | >>> ExtendedContext.is_zero(Decimal('2.50')) | False | null |
cpython | 3.10 | _pydecimal | Context.is_zero | >>> ExtendedContext.is_zero(Decimal('-0E+2')) | True | null |
cpython | 3.10 | _pydecimal | Context.is_zero | >>> ExtendedContext.is_zero(1) | False | null |
cpython | 3.10 | _pydecimal | Context.is_zero | >>> ExtendedContext.is_zero(0) | True | null |
cpython | 3.10 | _pydecimal | Context.ln | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.ln(Decimal('0')) | Decimal('-Infinity') | null |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.ln(Decimal('1.000')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.ln(Decimal('2.71828183')) | Decimal('1.00000000') | null |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.ln(Decimal('10')) | Decimal('2.30258509') | null |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.ln(Decimal('+Infinity')) | Decimal('Infinity') | null |
cpython | 3.10 | _pydecimal | Context.ln | >>> c.ln(1) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c = ExtendedContext.copy() | null | |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.Emin = -999 | null | |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.Emax = 999 | null | |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('0')) | Decimal('-Infinity') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('0.001')) | Decimal('-3') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('1.000')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('2')) | Decimal('0.301029996') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('10')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('70')) | Decimal('1.84509804') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(Decimal('+Infinity')) | Decimal('Infinity') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(0) | Decimal('-Infinity') | null |
cpython | 3.10 | _pydecimal | Context.log10 | >>> c.log10(1) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(Decimal('250')) | Decimal('2') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(Decimal('2.50')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(Decimal('0.03')) | Decimal('-2') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(Decimal('0')) | Decimal('-Infinity') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(1) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(10) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logb | >>> ExtendedContext.logb(100) | Decimal('2') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal('0'), Decimal('0')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal('0'), Decimal('1')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal('1'), Decimal('0')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal('1'), Decimal('1')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal('1100'), Decimal('1010')) | Decimal('1000') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal('1111'), Decimal('10')) | Decimal('10') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(110, 1101) | Decimal('100') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(Decimal(110), 1101) | Decimal('100') | null |
cpython | 3.10 | _pydecimal | Context.logical_and | >>> ExtendedContext.logical_and(110, Decimal(1101)) | Decimal('100') | null |
cpython | 3.10 | _pydecimal | Context.logical_invert | >>> ExtendedContext.logical_invert(Decimal('0')) | Decimal('111111111') | null |
cpython | 3.10 | _pydecimal | Context.logical_invert | >>> ExtendedContext.logical_invert(Decimal('1')) | Decimal('111111110') | null |
cpython | 3.10 | _pydecimal | Context.logical_invert | >>> ExtendedContext.logical_invert(Decimal('111111111')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_invert | >>> ExtendedContext.logical_invert(Decimal('101010101')) | Decimal('10101010') | null |
cpython | 3.10 | _pydecimal | Context.logical_invert | >>> ExtendedContext.logical_invert(1101) | Decimal('111110010') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal('0'), Decimal('0')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal('0'), Decimal('1')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal('1'), Decimal('0')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal('1'), Decimal('1')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal('1100'), Decimal('1010')) | Decimal('1110') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal('1110'), Decimal('10')) | Decimal('1110') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(110, 1101) | Decimal('1111') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(Decimal(110), 1101) | Decimal('1111') | null |
cpython | 3.10 | _pydecimal | Context.logical_or | >>> ExtendedContext.logical_or(110, Decimal(1101)) | Decimal('1111') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal('0'), Decimal('0')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal('0'), Decimal('1')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal('1'), Decimal('0')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal('1'), Decimal('1')) | Decimal('0') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal('1100'), Decimal('1010')) | Decimal('110') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal('1111'), Decimal('10')) | Decimal('1101') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(110, 1101) | Decimal('1011') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(Decimal(110), 1101) | Decimal('1011') | null |
cpython | 3.10 | _pydecimal | Context.logical_xor | >>> ExtendedContext.logical_xor(110, Decimal(1101)) | Decimal('1011') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(Decimal('3'), Decimal('2')) | Decimal('3') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(Decimal('-10'), Decimal('3')) | Decimal('3') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(Decimal('1.0'), Decimal('1')) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(Decimal('7'), Decimal('NaN')) | Decimal('7') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(1, 2) | Decimal('2') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(Decimal(1), 2) | Decimal('2') | null |
cpython | 3.10 | _pydecimal | Context.max | >>> ExtendedContext.max(1, Decimal(2)) | Decimal('2') | null |
cpython | 3.10 | _pydecimal | Context.max_mag | >>> ExtendedContext.max_mag(Decimal('7'), Decimal('NaN')) | Decimal('7') | null |
cpython | 3.10 | _pydecimal | Context.max_mag | >>> ExtendedContext.max_mag(Decimal('7'), Decimal('-10')) | Decimal('-10') | null |
cpython | 3.10 | _pydecimal | Context.max_mag | >>> ExtendedContext.max_mag(1, -2) | Decimal('-2') | null |
cpython | 3.10 | _pydecimal | Context.max_mag | >>> ExtendedContext.max_mag(Decimal(1), -2) | Decimal('-2') | null |
cpython | 3.10 | _pydecimal | Context.max_mag | >>> ExtendedContext.max_mag(1, Decimal(-2)) | Decimal('-2') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(Decimal('3'), Decimal('2')) | Decimal('2') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(Decimal('-10'), Decimal('3')) | Decimal('-10') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(Decimal('1.0'), Decimal('1')) | Decimal('1.0') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(Decimal('7'), Decimal('NaN')) | Decimal('7') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(1, 2) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(Decimal(1), 2) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.min | >>> ExtendedContext.min(1, Decimal(29)) | Decimal('1') | null |
cpython | 3.10 | _pydecimal | Context.min_mag | >>> ExtendedContext.min_mag(Decimal('3'), Decimal('-2')) | Decimal('-2') | null |
cpython | 3.10 | _pydecimal | Context.min_mag | >>> ExtendedContext.min_mag(Decimal('-3'), Decimal('NaN')) | Decimal('-3') | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.