Open tranleduy2000 opened 1 year ago
For division node, the visitor should:
undefinedPoints = Solve[ denominator == 0, var, S.Reals]
undefinedPoints
from domainTest cases:
FunctionDomain[(x^2+x+1)/x, x]
FunctionDomain[1/(x^2), x]
For Sqrt[x]
, the domain should be x >= 0
Test cases:
FunctionDomain[Sqrt[x-3], x]
Examples:
Existing implementation: