Comment #2 on issue 3975 by [email protected]: solve(floor (x)-5,x) should not raise NotImplementedError
http://code.google.com/p/sympy/issues/detail?id=3975

My code is at https://github.com/torsknod/sympy-torsknod/tree/3975 .

I didn't hear anything about complex numbers and floor before I read the following doctest in floor:
        >>> floor(-I/2)
        -I
If I understand the code right, floor is done separately for the real and imaginary part. But I am not sure if the implementation of eval is more than about complex number support.

Currently I have only implemented something for integer results which returns an Interval. But this fails for the solve call given as unfloor.eval() gets called with a Dummy as argument which has no/ empty assumptions. I thought about trying to fix this in the solver.
Were would you put the rewrite and can you give me an example?

Thanks
     Torsten

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to