Compare a list of numbers with NumberDB's mathematical tables. Enter a SageMath expression returning a number, a list or a dictionary of parameter-value pairs. Use the search tips for examples with real, complex, p-adic and polynomial values.
-2, pi, e
searches for certain constants.
{n: 2^n for n in [1..10]}
searches for $2^1$, ..., $2^{10}$.
RIF(10,11)
searches for all numbers contained in the interval $[10,11]$.
{n: sin(RIF(pi)/n) for n in [1..10]}
searches for $\sin(\pi/n)$ using real-interval arithmetic, without symbolic simplification.
{a: {b: a/b for b in [1..5] if gcd(a,b) == 1} for a in [-5..5]}
searches certain small rational numbers.
[field(5) for field in [Qp(2,prec=4)]]
searches for $5 + O(2^4)$ = $2^0 + 2^2 + O(2^4)$,
that is, any $2$-adic integer with first four $2$-adic digits $1$, $0$, $1$, $0$.
[{n: field(n) for n in [1..10]} for field in [Qp(2)]]
searches $1$, ..., $10$ as $2$-adic numbers with SageMath's default
relative precision of 20 $2$-adic digits. For even integers, the absolute
precision is higher because their valuation is positive.
[{n: ring([n,0,1]) for n in [1..10]} for ring in [PolynomialRing(QQ,'x')]]
searches for polynomials $x^2+n$ for integers $n=1,\ldots,10$.