GithubHelp home page GithubHelp logo

flacle / collatz Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 77 KB

Arc diagram visualization of the parity Collatz function from the famous conjecture.

Home Page: https://hal.archives-ouvertes.fr/hal-03201180

License: MIT License

Python 100.00%
number-theory p-adic-numbers arc-diagram mathematics collatz collatz-conjecture collatz-problem collatz-sequences collatz-algorithm collatzconjecture orbit diagrams

collatz's Introduction

Collatz 2-Adic Parity Map

Clockwise arc diagram visualization of the parity reformulation of the Collatz function
from the paper 2-adic parity explorations of the 3n+1 problem.
 
Clockwise arc diagram of orbits from the parity Collatz function for n0=25 This example shows the orbit of the parity map 25 -> 38 -> 19 -> 44 -> 11 -> 26 -> 13 -> 20 -> 5 -> 8 -> 1.

Features

  1. Show or hide differences between increments or decrements of n_{t} - n_{t-1} (edgeLabels = True/False)
  2. Show or hide nodes on the number line (hideNodes = True/False)
  3. Diagrams can be saved/displayed as either SVGs or PNGs

General Info

  1. Language: Python 3
  2. Dependencies:
    1. mpmath
    2. math
    3. drawSvg
    4. functools

License

This project is licensed under the terms of the MIT license.

Reference

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.