Giter VIP home page Giter VIP logo

Comments (1)

reversi-fun avatar reversi-fun commented on July 30, 2024

it was fixed In ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]
Now, I would like to extend the number of digits in the exponent part
to the extent that Fibonacci(2^128) can be calculated

Fibonacci(2^32) = 61999319689381859818 ... 39623735538208076347 are 897595080 digits
Fibonacci(2^33) = 85952566751663851805 ... 56284596352150015429 are 1795190160 digits
Fibonacci(2^34) = 16519720790107162698 ... 93653255813834863163 are 3590380321 digits
Fibonacci(2^36) = 83265638675292604737 ... 52272978483628077627 are 14361521282 digits
Fibonacci(2^45) = 73338953907000660494 ... 97199680563255315909 are 7353098896522 digits
Fibonacci(2^64) = 11175807536929528424 ... 17529800348089840187 are 3855141514259838964 digits
Fibonacci(2^65) = 27928192559276208238 ... 73996655951078624709 are 7710283028519677927 digits
"at Fibonacci(2^66:73786976294838206464)"
#<FloatDomainError: Exponent overflow>
"at Fibonacci(2^67:147573952589676412928)"
#<FloatDomainError: Exponent overflow>
"at Fibonacci(2^128:340282366920938463463374607431768211456)"
#<FloatDomainError: Exponent overflow>
Took 0.0256923s

from bigdecimal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.