r/programming • u/DataBaeBee • 3d ago
Inventing Your Own Math As A Computer Programmer
https://leetarxiv.substack.com/p/inventing-your-own-math-as-a-computer-programmer?r=2at73k&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true
45
Upvotes
72
u/vips7L 3d ago
Psychosismaxxxxing
85
u/Dreadgoat 2d ago edited 2d ago
TIL most of this subreddit doesn't understand the elementary definition of math: It's a language. Just like all languages, you can make up arbitrary new components any time you want. It doesn't even matter if it's useful, thousands of people dabble in speaking Klingon, we enjoy doing this. Schools of math such as group theory were worthless for decades before applications were found, mathematicians just like shooting shit at the wall.
Computers run into issues with certain schools and edges of mathematics where arithmetic architecture that is ideal for 99.9% of cases becomes a burden. OP is attempting to invent, yes INVENT, not discover, some new made up bullshit that approximates "real/ discovered" math in such a way that anybody's regular CPU can easily perform weird calculations with reasonable accuracy, using simple C interfaces and established types.
According to OP, out of 10000 tests (discovered established "real" math) 9988 passed (using his invented operations) and declares this a successful venture. I'll let you decide the value of 99.88% accuracy.
It's probably not useful, and may never be, but it's a cool exercise. I can't think of any real world applications where this needs to be made so much more efficient. But this is the kind of stuff that somebody stumbles upon 20 years later and says "oh wow I'm glad some insane guy did this for me already, turns out we need it now"
6
u/Optimal-Savings-4505 3d ago
Haters gonna hate. Looks like a fine way to spend your time!
6
u/takanuva 3d ago
Discovering* your own math.
4
u/VictoryMotel 3d ago
You should get together with terrance howard, he invented his own new math too.
0
u/reParaoh 3d ago
Y tho
-21
u/DataBaeBee 3d ago
My weekend sideproject has been building a complex number unit. It’s like a cpu where you replace floating point with imaginary numbers of the form x² + ny². It's use case is fairy quantization (using complex numbers instead of ternary quantization) in AI, factorization and solving discrete logs.
-9
u/TheBuildersBench 3d ago
Good 👍 👍 👍