Skip to content

Or ​

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

Logical disjunction (OR): true when at least one operand is true. Short-circuits: operands are evaluated left to right and evaluation stops at the first True.

✓ checked against that system · ! checked, with disagreements (hover a chip)WikipediaLogical disjunctionMathWorldDisjunctionWikidataQ1651704Encyclopedia of MathematicsDisjunctionFungrimOrWolfram LanguageOr!SymPyOr($*,)
Or(boolean+) -> booleanas compute-engine declares it
Typed signatures
TypePackageApplies
(boolean+) -> booleancompute-enginealways

Domain: Compute engine

Examples

Basic #

One true branch is enough, even with an irrational bound

live ↗
In2<1∨3<π2\lt1∨3\lt πOutTrue\mathrm{True}
Scope #

A True anywhere makes the whole Or True, whatever the unknowns

live ↗
Inx∨True∨zx∨\mathrm{True}∨zOutTrue\mathrm{True}
live ↗
InReplaceAll(x=0∨y=1x,Rule(x,0))\mathrm{ReplaceAll}(x=0∨y=\frac{1}{x}, \mathrm{Rule}(x, 0))OutTrue\mathrm{True}
live ↗
InReplaceAll(y=1x∨x=0,Rule(x,0))\mathrm{ReplaceAll}(y=\frac{1}{x}∨x=0, \mathrm{Rule}(x, 0))OutTrue\mathrm{True}
Applications #

The assumption makes (x2−1)2\sqrt{(x^2-1)^2} equal ∣x2−1∣|x^2-1|

live ↗
InRefine((x2−1)2,x≤−1∨x≥1)\mathrm{Refine}(\sqrt{(x^2-1)^2}, x≤-1∨x≥1)Out∣x2−1∣\vert x^2-1\vert
live ↗
In∫−∞∞∫−∞∞ ⁣[x2+y2<1∨(x−1)2+y2<2] dxdy\int_{-∞}^{∞}\int_{-∞}^{∞}\!\lbrack x^2+y^2\lt1∨(x-1)^2+y^2\lt2\rbrack\, \mathrm{d}x \mathrm{d}yOut∫−∞∞ ⁣∫−∞∞ ⁣[x2+y2<1∨(x−1)2+y2<2] dy dx\int_{-∞}^{∞}\!\int_{-∞}^{∞}\!\lbrack x^2+y^2\lt1∨(x-1)^2+y^2\lt2\rbrack\, \mathrm{d}y\, \mathrm{d}x
Properties #

De Morgan applied to a negated three-way Or

live ↗
InBooleanConvert(¬(a∨b∨c))\mathrm{BooleanConvert}(¬(a∨b∨c))Out¬a∧¬b∧¬c¬{{a}}∧¬{{b}}∧¬{{c}}
About
Examples7
Checked againstWolfram Language 6 agree1 differSymPy 2 agree1 differ
CrosswalkWikipediaMathWorldWikidataEncyclopedia of MathematicsFungrimWolfram LanguageSymPy

Implementation

mappedsympypackages/oracle/src/mappings.ts