Should the output be ln(abs(x)) ? or a piecewise: ln(x) for x>0 and undefined for x<=0 ?
Note, ?RealDomain states:
Results returned by procedures are postprocessed by discarding values containing any detectable non-real answers or replacing them with undefined where appropriate.
logarithms in Maple
In Maple, numbers are complex by default, and logarithms for negative numbers are defined as log(-n)=log(n)+Pi*I.
with(RealDomain);
would give logarithms of absolute values (but you'll see some other weird things instead.)
Alec
with(RealDomain) does not
with(RealDomain) does not solve the problem
No solution
AFAICT, there is no a good solution for working with real numbers in Maple. Just some ad hoc tricks.
Alec
ln and RealDomain
For something simpler:
Should the output be ln(abs(x)) ? or a piecewise: ln(x) for x>0 and undefined for x<=0 ?
Note, ?RealDomain states:
there is this
Re(int(1/x,x));
ln(|x|)
---
G A Edgar