feat(eval): add functions and constants

added constants pi, e
added functions sin, cos, tan, asin, acos, atan, abs, and sqrt
fixed displaying decimals without normalizing them
todo: add imaginary number support
This commit is contained in:
ozzy committed 2026-09-26 15:31:33 -05:00
1 parent 234b2ef2dc
commit bbc0ef6045
5 files changed
+58 -5

No files matched your search

+2
View File
@@ -2,7 +2,9 @@ use crate::math::types::Expression;
mod display;
mod eval;
mod functions;
mod lexer;
mod math_constants;
mod parser;
pub mod types;