Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Code Samples

169 views
unlisted
ubuntu2204
def r(v,d,q): if d > v*(q-1): print('REJECTED. R-E-J-E-C-T-E-D. REJECTED') print('____________________________________') else: print('you have survived another day') r = d%(q-1) print(r, 'is your remainder. for now....') m = (d-r)/(q-1) print('*slaps function* This function can fit a lot (',m,') of multiplicities in it!') print('____________________________________') #this should trigger survival, a remainder, and the multiplicity is 0 r(7,9,12) # this should trigger survival, a remainder, and a multiplicity greater than 0 r(7,12,5) # this should trigger a rejection because the degree is bigger than the boundary r(3,15,4)
you have survived another day 9 is your remainder. for now.... *slaps function* This function can fit a lot ( 0 ) of multiplicities in it! ____________________________________ you have survived another day 0 is your remainder. for now.... *slaps function* This function can fit a lot ( 3 ) of multiplicities in it! ____________________________________ REJECTED. R-E-J-E-C-T-E-D. REJECTED ____________________________________