Groups
Groups
Sign in
Groups
Groups
sympy
Conversations
About
Send feedback
Help
SymPy floor and ceiling for complex values
27 views
Skip to first unread message
Aaron Meurer
unread,
Jun 7, 2016, 3:10:53 PM
6/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
I noticed that floor() and ceiling() evaluate on complex values, like
In [13]: ceiling(1.5*I + 1.5)
Out[13]: 2 + 2⋅ⅈ
In [14]: floor(1.5*I + 1.5)
Out[14]: 1 + ⅈ
In other words, the usual floor and ceiling are applied to the real
and imaginary parts separately.
I'm curious if anyone knows why this particular generalization was used.
Aaron Meurer
Reply all
Reply to author
Forward
0 new messages