ohno / Antique.jl

Self-contained, well-tested, well-documented Analytical Solutions of Quantum Mechanical Equations.
https://ohno.github.io/Antique.jl/
MIT License
18 stars 3 forks source link

Accept objects of Symbolics.jl #57

Open ohno opened 1 month ago

ohno commented 1 month ago

This issue is related to https://github.com/ohno/Antique.jl/issues/44. Please add some if statements to escape following error:

using Symbolics
@variables r
if r < 0
end
--- output ---
TypeError: non-boolean (Num) used in boolean context

Stacktrace:
 [1] top-level scope

Goal:

using Antique
H = HydrogenAtom()
r^2 * R(H, r)^2
4 \left( e^{ - \left|r\right|} \right)^{2} r^{2}