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

    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...
  2. 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...
  3. ratwolf

    Hey everybody!

    Welcome
  4. 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...
  5. ratwolf

    Read Me How did you find us?

    welcome
  6. ratwolf

    Python Experimental Verification of the NKTg Law with NASA Neptune Data 2023–2024 [code Python]

    The current formulation appears dimensionally inconsistent. Specifically, x⋅p has units of kg·m²/s, while (dm/dt)⋅p has units of kg²·m/s². Since these terms do not share the same physical dimensions, they cannot be meaningfully added or combined under a square root. Dimensional homogeneity is...
  7. ratwolf

    JavaScript Help with Syntax Error for code from tutorial

    Simply replace the curly quotes (“...”) with straight double quotes (") throughout your switch statement:
  8. ratwolf

    Googled HELP with SyntaxError

    Legendary. The combination of absolute vagueness and complete confidence—truly a heroic post in the annals of programming forums
  9. ratwolf

    Python Help with 2d Array Error

    import random # dummy data class Thing: def __init__(self, id_val): self.coolest_stuff = 0 # Set to 0 so the if-statement passes # Random values to simulate data self.a_1 = random.randint(1, 100) self.a_2 = random.randint(1, 100) self.b_1 =...
  10. 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...
  11. 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)
  12. 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...
  13. 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...
  14. 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...
  15. ratwolf

    What's everyone up to :)

    10q! 🙏
  16. ratwolf

    AI Tools

    AI is like a power drill: useful but dangerous without skill. Your brain is the craftsman. The best developers/designers will be those who leverage AI while retaining deep expertise. :laugh:
  17. ratwolf

    What's everyone up to :)

    https://github.com/ratwolfzero/Quaternion_3D_Rotation
  18. ratwolf

    Fast GPU whole shapes sort, best way?

    Your approach is theoretically sound and could outperform A-buffers for many cases. The key is minimizing cutting overhead and maximizing parallelism. If you can efficiently reject non-overlapping shapes early, this should fly...
  19. ratwolf

    Python Help with pythom code from telegram

    I see that you probably have some unused imports, as well as redundant/duplicate imports. I would recommend using Timezone instead of Pytz. Just a proposal: # Standard library imports import os import sqlite3 from datetime import datetime, timezone # timezone is better than pytz for Python...
  20. ratwolf

    3D Rotation using Quaternions

    slight code improvement: pre-calculate cos_angles = np.cos(self.angles / 2) and sin_angles = np.sin(self.angles / 2) in class CombinedQuaternionRotator More efficient and cleaner. import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import...
Back
Top Bottom