When I try the following commands:
assume(dr<1) // assume dr less than 1
evalc(sqrt(dr-1)) // yields complex solution as expected
evalc(sqrt(dr^2-1)) // why is this not complex?
is there a way to make the result of evalc(sqrt(dr^2-1)) come out complex?
Thank you for a great program. I have tried many and prefer this.
Matt
Complex solutions
Modérateur : xcasadmin
Re: Complex solutions
Because dr<1 does not imply dr^2<1, you should assume(dr>0 && dr<1)
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: Complex solutions
OOps. Didn't think that one through.