Skip to content

HasElement ​

Whether x is an element of a finite-dimensional algebra.

HasElement(algebra, x)Whether x is an element of a finite-dimensional algebra.
Typed signatures
TypePackageApplies
(any, any) -> unknownstructuresalways

Domain: Structures

Details
  • The FiniteDimensionalAlgebra protocol's member, and what Element(x, algebra) answers when the algebra's type conforms.

Examples

Basic #
live ↗
InHasElement(CliffordAlgebra(2,0),e1e2)\mathrm{HasElement}(\mathrm{CliffordAlgebra}(2, 0), e_1e_2)OutTrue\mathrm{True}

e3e_3 is not a generator of Cl(2,0)\mathrm{Cl}(2,0)

live ↗
InHasElement(CliffordAlgebra(2,0),e3)\mathrm{HasElement}(\mathrm{CliffordAlgebra}(2, 0), e_3)OutFalse\mathrm{False}
About
Examples2

See also: Element, Basis