Prevent Maple to evaluate before simplify a function

537 Views Asked by At

I have been trying to find a domain of $f(x)=\frac{x}{\frac{(x+2)}{(x-3)}}$ using different kind of software ( its clear the domain of this function is $\mathbb{R}\backslash \{-2,3\}$ ). When I tried Maple , they directly changed to $f(x)=\frac{x(x-3)}{x+2}$ and its clear in this case the function is defined on 3. I just want to know if there is a way to prevent maple from simplifying the expression before evaluating for some values .

1

There are 1 best solutions below

2
On BEST ANSWER

One possibility is to use exceptions:

f:=proc (x) if x=-2 or x=3 then error "invalid x:",x else x/((x+2)/(x-3)) end if end proc: