Skip to content

Less ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.

Less-than comparison (strictly less than).

✓ checked against that system · ! checked, with disagreements (hover a chip)FungrimLessWolfram LanguageLess!
Less(any, any*) -> booleanas compute-engine declares it
SymPyLt(any, any*)Rustless(any, any*)
Typed signatures
TypePackageApplies
(any, any*) -> booleancompute-enginealways

Domain: Compute engine

Examples

Basic #

A chained comparison decides exactly, mixing rationals and π\pi

live ↗
In217<15<π10\frac{2}{17}\lt\frac{1}{5}\lt\frac{π}{10}OutTrue\mathrm{True}
Scope #

Rationals compare exactly: 32<53\frac{3}{2} < \frac{5}{3}

live ↗
In32<53\frac{3}{2}\lt\frac{5}{3}OutTrue\mathrm{True}

A difference far below double precision still counts, exactly

live ↗
In1<1+128×(10−16)1\lt1+128×(10^{-16})OutTrue\mathrm{True}

Exact arithmetic separates 1 from a slightly larger number

live ↗
In1<1+256×(10−16)1\lt1+256×(10^{-16})OutTrue\mathrm{True}
live ↗
Inπe<eππ^{e}\lt e^{π}OutTrue\mathrm{True}
Properties #

Under the assumption x<0x<0, x2\sqrt{x^2} simplifies to −x-x

live ↗
InRefine(x2,x<0)\mathrm{Refine}(\sqrt{x^2}, x\lt0)Out−x-x
live ↗
In∫−∞∞∫−∞∞ ⁣[1<x2+y2<2]x2 dxdy\int_{-∞}^{∞}\int_{-∞}^{∞}\!\lbrack1\lt x^2+y^2\lt2\rbrack x^2\, \mathrm{d}x \mathrm{d}yOut∫−∞∞ ⁣∫−∞∞ ⁣[1<x2+y2<2]x2 dy dx\int_{-∞}^{∞}\!\int_{-∞}^{∞}\!\lbrack1\lt x^2+y^2\lt2\rbrack x^2\, \mathrm{d}y\, \mathrm{d}x
About
Examples7
Checked againstWolfram Language 6 agree1 differSymPy 5 agree1 differmpmath 4 agreeRust 4 agree
CrosswalkFungrimWolfram LanguageSymPy ×2Rust

Implementation

mappedsympypackages/oracle/src/mappings.ts
mappedsympypackages/oracle/src/mappings.ts

A chain is the conjunction of its neighbors.

mappedmpmathpackages/oracle/src/mappings.ts
mappedrustpackages/oracle/src/mappings.ts