mathhook_core/core/expression/evaluation/mod.rs
1//! Expression evaluation methods
2//!
3//! This module contains the evaluation logic for expressions, including:
4//! - `evaluate()` method with domain checking
5//! - `evaluate_with_context()` method for variable substitution
6//! - `evaluate_to_f64()` method for numerical conversion
7//! - `substitute()` method for variable replacement
8//! - Hardcoded function dispatch for performance
9//!
10//! ## Module Organization
11//!
12//! - `core`: Main evaluation methods (evaluate, evaluate_with_context, evaluate_to_f64)
13//! - `substitution`: Variable substitution (substitute)
14//! - `dispatch`: Performance-critical function dispatch table
15
16mod core;
17pub mod dispatch;
18mod substitution;
19
20// Re-export the dispatch function for use by core.rs
21pub use dispatch::evaluate_function_dispatch;