Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from sympy import *
- >>> a = Rational(1,2)
- >>> a
- 1/2
- >>> a*2
- 1
- >>> Rational(2)**50/Rational(10)**50
- 1/88817841970012523233890533447265625
- >>> from Rat import rat
- >>> rat(1) / rat(3)
- Rat(1,3)
- >>> rat(1, 3) ** 2
- Rat(1,9)
Add Comment
Please, Sign In to add comment