Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. ratwolf

    The Hopalong "Attractor" That Isn't One

    A classic computer-art map has no attractor. Here is how to see its regular and chaotic regions with a few lines of Python and numba Search for "Hopalong attractor" and you get glowing, symmetric pictures made from nothing but two lines of arithmetic. They are fun to produce and easy to share...
  2. ratwolf

    Parallelizing Chaotic Loops: Two-Pass Checkpointed Orbit Decomposition in Python/Numba

    Parallelizing strictly sequential, deterministic chaotic loops usually fails due to two constraints: strict serial dependence (point \(N\) requires \(N-1\)) and memory explosion when storing billions of coordinates for density mapping. To solve this, I developed a pattern called Two-Pass...
  3. ratwolf

    Discreteness as the Late-Time Limit of a Smooth Flow

    An exactly solvable gradient flow whose time-evolution maps are smooth bijections of the real line at every finite time, and whose infinite-time limit is rounding to the nearest integer. Abstract We study the gradient flow of the periodic potential Integers are its stable fixed points and...
  4. ratwolf

    I Built a Finite-Element Solver With Nothing to Hide

    A transparent, dependency-free capacitor simulator — and an honest account of exactly where a simple mesh lets it down. Every physics course teaches the parallel-plate capacitor formula in the first week: Clean. Memorable. Wrong the moment your capacitor isn't two infinite plates in a...
  5. ratwolf

    A Measured Formulation of the Shadow View of Collatz

    A different way to look at one of mathematics’ most stubborn problem A useful way to think about the Collatz map is to separate the orbit into two layers: the parity pattern of the terms and the arithmetic values that carry that pattern. The Accelerated Collatz Formulation This perspective...
  6. ratwolf

    A Triplet-Based Parameterization for the Local Asymptotic Characterization of Polynomial Roots

    Abstract This paper introduces a compact three-parameter framework for characterizing the local geometry of polynomial roots. DOI (Zenodo) For each root, the framework records its position, its algebraic multiplicity, and a newly defined quantity called the characteristic deflection distance...
  7. ratwolf

    Python QuTiP Quantum Toolbox in Python

    QuTiP is open-source software for simulating the dynamics of open quantum systems. The QuTiP library depends on the excellent Numpy, Scipy, and Cython numerical packages. In addition, graphical output is provided by Matplotlib. QuTiP aims to provide user-friendly and efficient numerical...
  8. ratwolf

    Python Collection of Python Projects (The Beauty of Mathematics)

    GitHub Repository The mathematician's patterns, like the painter's or the poet's, must be beautiful; the ideas, like the colors or the words, must fit together in a harmonious way. Beauty is the first test: there is no permanent place in this world for ugly mathematics." – G. H. Hardy (1877–1947)
  9. ratwolf

    The Universe Never Forgets — It Just Grows

    The Universe Never Forgets — It Just Grows A Mathematical Thought Experiment at the Edge of Physics Check out the full proposal and Python simulation at The Golomb Universe ⌛ The “Quantum Memory Paradox” At the smallest scales, quantum mechanics demands that information is preserved — a...
  10. ratwolf

    The Fractal Heart of Weierstrass

    I experimented a bit with the famous, or rather infamous, Weierstrass function. The result was something like a Weierstrass toolkit, which allows you to represent the function, extended two-dimensionally, as a fractal (value probability density view) and more. I don't know if or who is...
  11. ratwolf

    How Stereographic Projection Reveals an Emergent Dimension

    GitHub The stereographic projection offers a fascinating analogy for understanding emergent dimensions — the idea that higher-dimensional information can be encoded in a lower-dimensional surface. While not a direct physical model, it helps visualize how the third dimension of spacetime might...
  12. ratwolf

    Python Wallpaper for the mind, a forgotten old classic

    Wallpaper for the mind, a forgotten old classic
  13. ratwolf

    Wallpaper for the mind, a forgotten old classic

    import numpy as np import matplotlib.pyplot as plt # Constants WIDTH, HEIGHT = 400, 400 # Grid resolution CORNER_A = -15 # Lower-left corner CORNER_B = -25 # Lower-right corner SIDE = 41 # Side length of the square grid NUM_COLORS = 4 # Number of distinct colors def...
  14. ratwolf

    Python 3D Rotation using Quaternions

    3D Rotation using Quaternions
  15. ratwolf

    3D Rotation using Quaternions

    import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import quaternion # Requires 'numpy-quaternion' package def setup_figure(): fig = plt.figure(figsize=(10, 8), dpi=100) ax = fig.add_subplot(111, projection='3d') lim = (-1.5, 1.5)...
  16. ratwolf

    Fast wired internet

  17. ratwolf

    "Less is More: Your Best Python One-Liner?"

    Estimate π via the Monte Carlo method: import numpy as np; print(4 * np.mean(np.sum(np.random.rand(10**7, 2)**2, axis=1) < 1))
  18. ratwolf

    Python Generate a Secure Random Password in One Line!"

    Want to generate a secure, random password in just one line of Python? Here's a quick one-liner using random and string modules: import random, string password = ''.join(random.choices(string.ascii_letters + string.digits + string.punctuation, k=12)) print(password) This creates a random...
  19. ratwolf

    Fractal design with Golomb rulers

    You really have to ask yourself who comes up with such ideas:eek: GitHub - ratwolfzero/Golomb: Fractal design with Golomb rulers
  20. ratwolf

    Do you want to travel far away this weekend?

    Why don’t you take Alcubierre's warp drive! Warp Drive in a Nutshell The concept of a warp drive—a theoretical propulsion system that allows faster-than-light travel—was first mathematically formalized by physicist Miguel Alcubierre in 1994. Inspired by the idea of bending space-time, Alcubierre...
Back
Top Bottom