Giter VIP home page Giter VIP logo

hassie-s-algorithm-illustrator.github.io's Introduction

πŸ‘‹ Hassie-s-Algorithm-Illustrator.github.io

πŸ™‹β€β™‚οΈHello innovators, A interesting Mathematical conjecture in Maths called 3x+1 map or Collatz conjecture or Hassie's algorithm, which is simple to understand :- 🧠

  1. Take a any natural number.(let x)
  2. If the number is even then divide it by 2.( x -> x/2) OR else if the number odd then multiply it by 3 and add 1 ( x -> 3x+1)
  3. Repeat these steps for every answer you get and you'll find that for any value of x you'll end up to 1 and loop of(4,2,1).

🀩 I simply programmed it. so that you can get a πŸ“ˆ graph as illustrator which shows value after each iteration (Y-axis) and number of iterations(X-axis). just enter your desired input and see the magic.

you'll observed that for any value of input it end up with 1.

Tools used :-πŸ§‘β€πŸ’»

  • (library) chart.js
  • (logic) Javascript

hassie-s-algorithm-illustrator.github.io's People

Contributors

rajni2002 avatar

Stargazers

 avatar

Watchers

 avatar

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.