Skip to content

Equal ​

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

Equality comparison (equal to).

✓ checked against that system · ! checked, with disagreements (hover a chip)FungrimEqualWolfram LanguageEqual!
Equal(any, any) -> booleanEquality comparison (equal to).
SageMathenumeratio_equal(any, any)SymPyenumeratio_equal(any, any)mpmathalmosteq(any, any, 1e-20)Juliaenumeratio_equal(any, any)Rustequal(any, any)
Typed signatures
TypePackageApplies
(any, any) -> booleanadelesreplaces compute-engineon Adele, Idele, ProfiniteNumber
(any, any) -> booleancompute-enginealways
(any, any) -> booleanresiduesreplaces compute-engineon IntegerMod

Domain: Compute engine

Examples

1 more kept as data, checked against the oracles
Basic #

Equal integers

live ↗
In4=44=4OutTrue\mathrm{True}
Scope #

A 20-digit approximation compares equal to the exact constant

live ↗
InN(π,20)=πN(π, 20)=πOutTrue\mathrm{True}

Two different-looking radicals are proven equal

live ↗
In2+3=5+26\sqrt{2}+\sqrt{3}=\sqrt{5+2\sqrt{6}}OutTrue\mathrm{True}

A symbol equals itself

live ↗
Inx=xx=xOutTrue\mathrm{True}

Chained equality checks every neighbour

live ↗
In3=3=33=3=3OutTrue\mathrm{True}

Lists compare as wholes

live ↗
In[1,2]=[1,2]\bigl\lbrack1, 2\bigr\rbrack=\bigl\lbrack1, 2\bigr\rbrackOutTrue\mathrm{True}
live ↗
InN(π,20)=π(1+256×(10−20))N(π, 20)=π(1+256×(10^{-20}))OutTrue\mathrm{True}
Properties #

Undecidable x=yx=y stays unevaluated while the others resolve

live ↗
In{x=xx=y2+3=5+26π=N(π)\begin{cases}x=x\\x=y\\\sqrt{2}+\sqrt{3}=\sqrt{5+2\sqrt{6}}\\π=N(π)\end{cases}Out[True,x=y,True,True]\bigl\lbrack\mathrm{True}, x=y, \mathrm{True}, \mathrm{True}\bigr\rbrack
live ↗
InSolve(ax2+bx+c=0,x)\mathrm{Solve}(ax^2+bx+c=0, x)Out[b2−4ac−b2a,−b−b2−4ac2a]\bigl\lbrack\frac{\sqrt{b^2-4ac}-b}{2a}, \frac{-b-\sqrt{b^2-4ac}}{2a}\bigr\rbrack
Possible issues #
live ↗
InFullSimplify((p∨q)=(q∨p))\mathrm{FullSimplify}((p∨q)=(q∨p))OutTrue\mathrm{True}
About
Examples11
Checked againstWolfram Language 8 agree3 differSageMath 7 agree1 differSymPy 6 agree3 differmpmath 3 agree2 differ1 errorJulia 6 agreeRust 6 agree
CrosswalkFungrimWolfram LanguageSageMathSymPympmathJuliaRust

Implementation

mappedwolframpackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedsympypackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedmpmathpackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedsagepackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedoscarpackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedjuliapackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedmathlib4packages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.

mappedrustpackages/oracle/src/mappings.ts

The single most valuable row: a large share of documented examples are identities written as Equal.