So better do higher math in Python? I agree.
Comment on ))<>((
MotoAsh@lemmy.world 8 months ago
The underlying truth of this joke is: Programming syntax is less confusing than mathematical syntax. There are genuinely ambiguous layouts of syntax in math whereas you get a compilation error if ANYTHING is ambiguous in programming.
MonkderDritte@feddit.de 8 months ago
MotoAsh@lemmy.world 8 months ago
Python isn’t the only programming language.
MonkderDritte@feddit.de 8 months ago
But a quite common pl in science.
itsralC@lemm.ee 8 months ago
Counterpoint: C function pointers (or just C in general)
dejected_warp_core@lemmy.world 8 months ago
Also: sometimes, a mathematician just has to invent some concept or syntax to convey something unconventional. The specific use of subscript/superscript, whatever ‘phi’ is being used for, etc. on whatever paper you’re reading doesn’t have to correlate to how other work uses the same concepts. It’s bad form, but sometimes its needed, and if useful enough is added to the general canon of what we call “math”. Meanwhile, you can encapsulate and obfuscate things in software, sure, but you can always get down to the bedrock of what the language supports; there’s no inventing anything new.
MotoAsh@lemmy.world 8 months ago
Yea, that’s it. Math syntax was created for humans, and programming syntax had to always remain deterministic. It’s not an insult to either, just interesting how ambiguities show up often when humans are involved.
SmartmanApps@programming.dev 8 months ago
Math should be just as deterministic as programming, but it’s not in some situations
Maths is 100% deterministic for order of operations. The issue is people not following all of the rules. Order of operations thread index
MotoAsh@lemmy.world 8 months ago
Math is. The syntax is arbitrary in some edge cases.
DragonTypeWyvern@literature.cafe 8 months ago
Internalized PEMDAS without knowing it’s literally the same thing as BODMAS is exactly the problem!
strawberry@kbin.run 8 months ago
what in the name of fuck is BODMAS
TheOakTree@lemm.ee 8 months ago
Same as PEMDAS, except: Parentheses -> Bracket Exponent -> Order Multiplication <-> Division
BODMAS
MystikIncarnate@lemmy.ca 8 months ago
I learned it as “BEDMAS”
Brackets
Exponents
(You can guess the rest)
But when I learned BEDMAS, my teacher directed us to do implied multiplication before other multiplication/division. Which, as far as I’m aware, is mathematically correct according to the proper order of operations (instead of whatever acronym summary you learned).
Before I get "umm. Acktually"d … I know that’s not the full picture of the order of operations as it should be in mathematics. But for the limited scope I learned of algebra from highschool, AFAIK, this is correct to the point that I have understanding of. I’m not a mathematician, and I work with computers all day long and they do the math for me when I need to do any of it. So higher understanding in my case is not helpful.
strawberry@kbin.run 8 months ago
order? how does that make sense? brackets alright ig
MotoAsh@lemmy.world 8 months ago
I mean … yea. The exact problem is math is not taught correctly. Order of operations make total logical sense for what the operations are doing.
SmartmanApps@programming.dev 8 months ago
Every single Maths textbook I’ve seen teaches it correctly. The issue is people not remembering what they were taught (and then programming a calculator without checking it first). Calculators