this post was submitted on 18 May 2025
58 points (95.3% liked)

Ask Lemmy

31741 readers
1602 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try [email protected] or [email protected]


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
top 43 comments
sorted by: hot top controversial new old
[–] [email protected] 40 points 3 days ago (2 children)

I have a strong relationship to what you get when you divide by zero.

Good ol' NaN

[–] [email protected] 7 points 2 days ago

I like writing swear words into the mantissa of NaN numbers

[–] [email protected] 8 points 3 days ago

You only get NaN for division by zero if you divide 0 by 0 in IEEE floating point. For X/0 with X ≠ 0, you get sign(X)•Inf.

And for real numbers, X/0 has to be left undefined (for all real X) or else the remaining field axioms would allow you to derive yourself into contradictions. (And this extends to complex numbers too.)

[–] [email protected] 27 points 3 days ago

Negative zero, comes up in comp sci.

[–] [email protected] 22 points 3 days ago (2 children)

ε, the base of the dual numbers.

It’s a nonzero hypercomplex number that squares to zero, enabling automatic differentiation.

[–] [email protected] 8 points 2 days ago (1 children)

Came here to say this, but since it's already here, I'll throw in a bonus mind-melting fact: ε itself has no square root in the dual numbers.

[–] [email protected] 3 points 2 days ago (1 children)

As a not good at math person, advanced math sounds hella fake sometimes. Like almost a parody of math. I accept that it's real but part of me will always think it's some inside joke or a secret society cult for the lamest god.

[–] [email protected] 2 points 2 days ago (1 children)

A lot of "advanced" maths comes from asking "What if this was a thing, how would that work? Would it even work?", so you could say there's a deliberate sense of "fake" about it.

Dual numbers come from "What if there was another number that isn't 0 which when multiplied by itself you get 0?"

Basic dual numbers (and complex numbers) are no harder than basic algebra, shallow end of the pool kind of stuff, but then not everyone is comfortable getting in the water in the first place, and that's OK too.

[–] [email protected] 3 points 2 days ago* (last edited 2 days ago) (2 children)

Thank you for the info!

Puts on floaties and a brave face, then advances to the shallow end

What is the value in learning about "What if there was another number that isn't 0 which when multiplied by itself you get 0?"

Are there any practical applications IRL for dual numbers?

Edit: Screw Screw theory. Wikipedia says dual numbers have applications in mechanics and to see Screw Theory. I tried reading about it and my eyes glazed over so quickly. Math so isn't for me lol.

[–] [email protected] 2 points 2 days ago

Since there's a reasonably strong link to calculus, and mechanics as you've already found, it could theoretically help in physics simulations either in a computer or on paper.

As for practical application, well, emulating physics is pretty important in a lot of computer games, or getting robots (assembly line arms, androids, automated vacuum cleaners) around the place and to do what they need without accidentally catapulting themselves into next Tuesday.

How that's actually programmed might not involve dual numbers at all, but they're one way of looking at how those calculations might be done.

[–] [email protected] 1 points 2 days ago

I can't answer for dual numbers, but I can answer for imaginary numbers in circuit design.

Imaginary numbers are those that include an imaginary component, that squares into a negative number. Traditionally, i^2 = -1, but electrical engineers like to use j instead (I tends to be a variable used to describe electrical current).

Complex numbers, that include a real component and an imaginary component, can be thought of as having an "angle," based on how much of it is imaginary and how much of it is real, mapped onto a 2-dimensional representation of that number's real and imaginary components. 5 + 5j is as real as it is imaginary, so it's like having a 45° angle. The real number 5 is completely real, so it has a 0° angle.

Meanwhile, in alternating current (AC) circuits, like what you get from your wall outlet, the voltage source is a wave that alternates between a maximum peak of positive voltage and a bottom trough of negative voltage, in a nice clean sinusoidal shape over time. If you hook up a normal resistor, the nice clean sinusoidal voltage also becomes a nice clean sinusoidal current with the exact same timing of when the max voltage matches up with the max current.

But there's also capacitors, which accumulate charge so that the flow of current on the other side depends on its own state of charge. And there are inductors, that affect current based on the amount of energy stored magnetically. These react to the existing current and voltage in the system and manipulate the time relationship between what moment in time a peak current will happen and when the peak voltage was.

And through some interesting overlap in how adding and subtracting and delaying sinusoidal waves works, the circuit characteristics line up perfectly with that complex angle I was talking about, with the imaginary numbers. So any circuit, or any part of a circuit, can be represented with an "impedance" that has both an imaginary and real component, with a corresponding phase angle. And that complex number can be used to calculate information about the time delay in the wave of current versus the wave of voltage.

So using complex phase angles makes certain AC calculations much, much easier, to represent the output of real current from real voltage, where the imaginary numbers are an important part of the calculation but not in the actual real world observation itself.

So even though we start with real numbers and end with real numbers, having imaginary numbers in the toolbox make the middle part feasible.

[–] [email protected] 1 points 2 days ago

Complex numbers 🤝 Split-complex numbers 🤝 Dual numbers

All super rad.

[–] [email protected] 16 points 3 days ago (1 children)

j = √-1

This comment was sponsored by EE gang

[–] [email protected] 2 points 2 days ago

Set phasors to "confuse"

[–] untakenusername 12 points 2 days ago (1 children)

i=sqrt(-1) is nice, but im hoping someone finds a use for the number x where |x| = -1 or some nonsense like that because it looks fun to mess with

[–] [email protected] 14 points 2 days ago

Those exist in the split-complex number system which adds the number j, where j^2=1 (but j does not equal 1 or -1). The modulus of j is -1.

[–] [email protected] 13 points 3 days ago (1 children)

So complex or quaternion I imagine? 'i' it is!

[–] [email protected] 12 points 3 days ago

√-4 = 2

It's all fun and games until someone loses an i.

[–] [email protected] 13 points 3 days ago (1 children)
[–] [email protected] 5 points 2 days ago
[–] [email protected] 4 points 2 days ago (1 children)

Matrix representations in general, if that counts?

Complex numbers, polynomials, the derivative operator, spinors etc. they're all matrices. Numbers are just shorthand labels for certain classes of matrices, fight me.

[–] [email protected] 2 points 2 days ago (1 children)

Would you elaborate on the last statement?

[–] [email protected] 3 points 2 days ago

I'm just being silly, but I mean that if everything can be represented as a matrix then there's a point of view where things like complex numbers are just "names" of specific matrices and the rules that apply to those "names" are just derived from the relevant matrix operations.

Essentially I'm saying that the normal form is an abstract short hand notation of the matrix representation. The matrices are of course significantly harder and more confusing to work with, but in some cases the richness of that structure is very beautiful and insightful.

(I'm particularly in love with the fact one can derive spinors and their transforms purely from the spacetime/Lorentz transforms. It's a really satisfying exercise and it's some beautiful algebra/group theory.)

[–] [email protected] 6 points 2 days ago

I'm a big fan of 10-adics, especially this one.

j is cool too, as is (1+j)/2.

[–] [email protected] 7 points 3 days ago (1 children)
[–] [email protected] 2 points 2 days ago* (last edited 2 days ago)
[–] [email protected] 4 points 3 days ago
[–] [email protected] 4 points 3 days ago
[–] [email protected] 3 points 3 days ago (1 children)
[–] [email protected] 12 points 3 days ago (1 children)

Pi is a real number, though. It's irrational, but real.

[–] [email protected] -1 points 3 days ago (1 children)

Pi written out is a real number, yes, I’m referring to the symbol representing Pi. Does that not count?

[–] [email protected] 8 points 2 days ago
[–] [email protected] 1 points 2 days ago* (last edited 2 days ago)

{j|∧} or ĵ just a base vector

[–] [email protected] 1 points 3 days ago (1 children)

Chaitin's constants.

Not even a number.

[–] Ad4mWayn3 7 points 3 days ago (1 children)

They are still real numbers. Specifically uncomputable, normal numbers. Which means their rational expansion contain every natural number.

[–] [email protected] 1 points 3 days ago

Oops, I misunderstood what an uncomputable is...

In that case, I would say Infinity-Infinity. This time, it's truly not a number.

[–] [email protected] -5 points 3 days ago (3 children)

Zero

It's the absence of a number and has all manner of interesting edge cases associated with it.

[–] [email protected] 3 points 1 day ago

For a while 1 wasn't considered to be a number either http://aleph0.clarku.edu/~djoyce/elements/bookVII/defVII1.html

[–] Ad4mWayn3 13 points 3 days ago

Zero is the absence of a quantity, but it is still a number.

[–] [email protected] 5 points 2 days ago (2 children)

Zero is a real number, but interestingly, it's also a pure imaginary number. It's the only number that's both things at once.

[–] [email protected] 2 points 2 days ago

As I said .. lots of edge cases :)

[–] Ad4mWayn3 2 points 2 days ago (1 children)

It gets deeper. It's also the same as the 0-k-vector, the 0-k-blade, the 0-multivector, the only number that is its own square besides 1, etc...

[–] [email protected] 1 points 2 days ago

There are other idempotent numbers in the split-complex and q-adic (for non-prime q) numbers.