Coding 2025-10-23
All right, I didn't have much time to post today, so I'm going to try to lay out some work I need to do on the base stuff.
For now, I'm not considering algebraic numbers. Just integers (built in) and complex integers. For complex integers of either kind, I want:
- Add instances of a type to each other.
- Subtract instances of a type from each other.
- Add and subtract integers.
- Divide instances by each other, which requires:
- Take complex conjugate of instances
- Multiply instances by each other
- Convert real-valued instances to ints
- Divide instances by ints
- Also, checking divisibility of instances by each other, so, taking the modulus I guess?
I'm probably also going to want to figure out stuff like "hey, is this instance an exact power of another instance", which is going to be... interesting. (Wait, multiply by conjugate and check power; there might be some false positives from this, not sure.)
Anyway, it's late and the melatonin is kicking in, so I'm not going to try to do any of this now, but this all feels like something I could throw together with an abstract base class and a bit of elbow grease.
In any case, I need to get ready for bed now.
Good night.