The ValueError is correct -- the quantity is so close to 1 that numerics cannot tell whether the floor is 0 or 1. You could report a bug to gp, though, because the correct answer is 0, not 1.
On Friday, February 9, 2024 at 10:48:41 AM UTC-5 Georgi Guninski wrote: > hi, > > floor(tanh(91)) > > ValueError: cannot compute floor(sinh(91)/cosh(91)) using 256 bits of > precision > > gp('floor(tanh(91))') > 1 > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/3999c0ca-f964-40d5-8884-648d2e307334n%40googlegroups.com.