Skip to content

Commit 430686b

Browse files
committed
fix: treat lowercase e as variable, not Euler constant
- e is commonly used as a free symbol; only uppercase E maps to Euler's number - Removes silent semantic change from original parse_expr behavior
1 parent d72bc45 commit 430686b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/qwed_new/core/safe_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _build_safe_local_dict(
129129
"tau": Symbol("tau"), "phi": Symbol("phi"),
130130
"chi": Symbol("chi"), "psi": Symbol("psi"),
131131
"omega": Symbol("omega"),
132-
"pi": pi, "e": E, "E": E, "I": I, "oo": oo,
132+
"pi": pi, "E": E, "I": I, "oo": oo,
133133
"sin": sympy.sin, "cos": sympy.cos, "tan": sympy.tan,
134134
"cot": sympy.cot, "sec": sympy.sec, "csc": sympy.csc,
135135
"asin": sympy.asin, "acos": sympy.acos, "atan": sympy.atan,

0 commit comments

Comments
 (0)