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 Language
BooleBoole(boolean) -> integeras compute-engine declares itSymPy
Piecewise((1, boolean), (0, True))Typed signatures
| Type | Package | Applies |
|---|---|---|
(boolean) -> integer | compute-engine | always |
About
| Crosswalk | Wolfram LanguageSymPy |
|---|
Implementation
mapped
sympypackages/oracle/src/mappings.tsPiecewise over the condition, which is a SymPy relational or And/Or/Not.