Hacker Newsnew | past | comments | ask | show | jobs | submit | VladimiOrlovsky's commentslogin

import decimal

def solve_kangaroo_limit(): # Set precision to handle the "digits different from six" requirement decimal.getcontext().prec = 50

    # For U(0,1), H(x) approaches 2x + 2/3 very rapidly (exponential decay of error)
    # At x = 10^6, the value is indistinguishable from the asymptote
    x = 10**6
    limit_value = decimal.Decimal(2) * x + decimal.Decimal(2) / decimal.Decimal(3)
    
    print(f"H({x}) ≈ {limit_value}")
    # Output: 2000000.66666666666666666666...
if __name__ == "__main__": solve_kangaroo_limit() ....p.s. for airheads=idiots: """decimal.Decimal(2) / decimal.Decimal(3)""" == 0.6666666666666666666666666666666666666666666666666666666666666666666666666 ... This is your Fukingly 'smart' computer???


p.s. This is not on singular error, this is a good example of fundamental problems ... and a lot of lies. End of conversation.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: