FunctionEducator

Trait FunctionEducator 

Source
pub trait FunctionEducator: Send + Sync {
    // Required methods
    fn explain_evaluation(&self, name: &str, args: &[Expression]) -> Vec<String>;
    fn to_latex(&self, name: &str, args: &[Expression]) -> String;
    fn get_background(&self, name: &str) -> Option<String>;
    fn get_related_concepts(&self, name: &str) -> Vec<String>;
}
Expand description

Trait for function educational capabilities

Provides step-by-step explanations and educational content for mathematical functions, separated from core functionality.

Required Methods§

Source

fn explain_evaluation(&self, name: &str, args: &[Expression]) -> Vec<String>

Generate step-by-step explanation for a function evaluation

Source

fn to_latex(&self, name: &str, args: &[Expression]) -> String

Generate LaTeX representation of a function

Source

fn get_background(&self, name: &str) -> Option<String>

Get mathematical background information

Get related functions and concepts

Implementors§