Module exmex::prelude

source ·
Expand description

Exmex’ prelude can be imported via use exmex::prelude::*;.

The prelude contains

  • expression trait Express,
  • its implementation FlatEx,
  • and the partial differentiation of FlatEx, if the feature partial is active.

Re-exports

Structs

  • Flattened expressions make efficient evaluation possible. Simplified, a flat expression consists of a SmallVec of nodes and a SmallVec of operators that are applied to the nodes in an order following operator priorities.

Traits

  • Calculation with expression such as application of operators or substitution
  • Expressions implementing this trait can be parsed from stings, evaluated for specific variable values, and unparsed, i.e., transformed into a string representation.
  • Parse a value from a string