Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
williamstein
GitHub Repository: williamstein/rh
Path: blob/master/worksheets/2015-01-01-scratch chapter 17.sagews
150 views
a = ZZ(randint(1,10^30)); a
562135194367487050211223510846
b = a - ZZ(randint(1,10^20)); b
562135194322723023055532589170
The quotient is:
latex(a/b)
\frac{281067597183743525105611755423}{281067597161361511527766294585}
Written out
show(a/b)
281067597183743525105611755423281067597161361511527766294585\frac{281067597183743525105611755423}{281067597161361511527766294585}
N(a/b,digits=200)
1.0000000000796321376206019890131716610553344275084434363069400718054539885159555690643004972719946859138608939213845203097723858747761705605104378989546256958836131549015173478837281352244724762786342