Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to test an identity of rational numbers?

Hi,

Why is there a difference in output between:

 print 5-1 == 0
 print 3^(1/3) - 3^(1/5) == 0

 False
 3^(1/3) - 3^(1/5) == 0

What can I do if $x,y,s,t \in \mathbb Q$, and I want to test $x^y == s^t$?

Thanks for your support!

Roland