Skip to content

Boole ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.

Return 1 if the argument is true, 0 otherwise. Also known as the Iverson bracket

Wolfram LanguageBoole
Boole(boolean) -> integeras compute-engine declares it
SymPyPiecewise((1, boolean), (0, True))
Typed signatures
TypePackageApplies
(boolean) -> integercompute-enginealways

Domain: Compute engine

About
CrosswalkWolfram LanguageSymPy

Implementation

mappedsympypackages/oracle/src/mappings.ts

Piecewise over the condition, which is a SymPy relational or And/Or/Not.