Hacker News new | past | comments | ask | show | jobs | submit | tenderfault's comments login

any chance of getting a responsive TOC in any pdf reader whatsoever?


is the ocr system written in perl by any chance?


11mbps away, I just can't reach the goddam thing. Internal Server Error. When the fox can't reach the grapes she says they're sour anyway.


fine. I believe you because I am experiencing the same things.

did you eliminate depression as a possible cause? I don't know how. there is no "expert help" in my country. I believe everyone around me is faking whatever they are doing, including therapy.

another thing to note: isolation. i think my isolation level just kept increasing. i entered a hole with the lockdown and i never got out, contrary. isolation could be a cause of cognitive impairment, yes? we are social animals?

can you make any sense of what i'm saying?

p.s. also my short term memory is broken.

p.s. I am also becoming increasingly paranoid because of this apparent cognitive impairment.


Do you exercise?

I forced myself to do workout classes like it was important non negotiable work


no :-| for various reasons, invented or real: 2 big physical injuries in a sequence, depression, tv... at least 2 years of stationary life. there goes the real root of my (our) cognitive impairment, no matter how much i want to blame an external uncontrollable factor.


find a reason to walk brisky everyday, it sucks when its cold out but my dog is my reason.

The physical injuries are always challenging to work with when trying to be active. My wife deals with all kinds of tendonitis and knee and ankle setbacks.

You gotta dig real deep somehow and fight for it when you got a setback like long covid or injuries.


“ Ford even built a Stirling that could drive away from the curb (with relatively low power) twenty seconds after you turned the start key”

Can the engine be started remotely? Just asking…


Right. “Complex numbers were invented so that we can take square roots of negative numbers”

Why? I wish a textbook tell me why, right there.


Because complex numbers make the fundamental theorem of Algebra nice and simple rather than complicated and ugly. In turn, this makes the spectral theorem of linear algebra nice and simple rather than complicated and ugly. In turn, this makes a bunch of downstream applications nice and simple rather than complicated and ugly.

You will get a feel for this if you work Axler's problems. More importantly, you will gain an intuition for the fact that if you turn up your nose at complex numbers while going into these application spaces, you are likely to painstakingly reinvent them except harder, more ugly, and worse.

Example: in physics, oscillation and waves A. underpin everything and B. involve energy sloshing between two buckets. Kinetic and potential. Electric and magnetic. Pressure and velocity. These become real and imaginary (or imaginary and real, it's arbitrary). This is where complex numbers -- where you have two choices of units -- absolutely shine. Where you would have needed two coupled equations with lots of sin(), cos(), trig identities, and perhaps even bifurcated domains you now have one simple equation with exponentials and lots of mathematical power tools immediately available. Complex numbers are a huge upgrade, and that's why anything to do with waves will have them absolutely everywhere.


You might think that in every real world application, complex numbers are introduced as a convenience, and that every calculation that takes advantage of them ends with taking the real part of the result, but that's not the case. In QM, the final answer contains an imaginary part that cannot be removed.


Having studied QM, I disagree. You can always introduce trigonometry and remove it.

Keep in mind that everything observable is a real number even if the intermediate calculations involve imaginary numbers.


Yup, and the Madelung equations explicitly present QM without complex numbers:

https://en.wikipedia.org/wiki/Madelung_equations#Equations


Imagine you're a 16th century Italian mathematician who is trying to solve cubic equations. You notice that when you try to solve some equations, you end up with a sqrt(-1) in your work. If you're Cardano, you call those terms "irreducible" and forget about them. If you're Bombelli, you realize that if you continue working at the equation while assuming sqrt(-1) is a distinct mathematical entity, you can find the real roots of cubic equations.

So I would say that it's less that "Complex numbers were invented so that we can take square roots of negative numbers", and more "Assuming that sqrt(-1) is a mathematical entity lets us solve certain cubic equations, and that's useful and interesting". Eventually, people just called sqrt(-1) "i", and then invented/discovered a lot of other math.

Source: http://fermatslasttheorem.blogspot.com/2006/12/bombelli-and-...


I know people have jumped here to try to explain it to you as a comment, but I highly recommend a recent talk by Freya Holmer. It's a fun little exploration of a seemingly simply question about vectors that motivates the answer you asked. It also culminates with an introduction to Clifford Algebras, which you may or may not want to learn about after the talk.

https://www.youtube.com/watch?v=htYh-Tq7ZBI


That is already a first and most important "why". It may be a little bit too terse, but mathematics didn't evolve by knowing the applications before doing something.

Without doing some playing around from sqrt(-1) and discovering how it connects one thing to another, nobody is able to come up with real applications. You need to at least build a placeholder of the concept in your mind before you can examine what's possible.

So a person with a similar mindset as those who were the first people to use complex numbers, would just try to find a way to express a square root of a negative number and see how it goes. It starts with a limitation of an important tool and tries to close a perceived conceptual gap. The mathematicians themselves that write this book probably all think that way. I wouldn't call myself a mathematician but I didn't need anything more than that sentence to believe someone was motivated enough just from that reason alone.

So really there's a whole audience out there - arguably that a professional mathematician most wants to address - that could appreciate this sentence just as-is. So it's not true that it's natural to think the audience requires further explanation. Whether you should care is another matter. But as this is a book about linear algebra not complex numbers, some others would have accused the author of digression if he granted your wishes.

So I don't think what you're demanding is fair. Maybe it's a reasonable request after the fact, but it's a little too harsh to think it's something the author must have addressed in his text to his intended audience. This kind of inquiry is what in-person teaching is useful for.


This is completely false, there is a 'why' and it's that people needed to permit taking square roots of negative numbers to find (real!) roots of cubic polynomials. I don't think this book needs to digress into that, sure.


I prefer a simpler perspective for complex numbers of "defined latently, then discovered, accepted, named and given notation", other than "invented".

Invented implies some degree of arbitrariness or choice, but complex numbers are not an arbitrary construct.

Zero, negative numbers, and imaginary numbers were all latently defined by prior concepts before they were recognized. They were unavoidable, as existing operations inevitably kept producing them. Since they kept coming up, it forced people to eventually recognize that these seemingly nonsensical concepts continued to behave sensibly under the operations that produced them.

Once addition and subtraction were defined on natural numbers, (1, 2, 3, ... etc), the concept of zero was latently defined. The concept of "nothing" was not immediately recognized as a number, but there is only one consistent way of dealing with 2-2, 5-5, 7-7, etc. Eventually that concept was given a name "zero", notation "0", and adopted as a number.

It was discovered, in that it was already determined by addition and subtraction, just not yet recognized.

Similarly with negative numbers. They were also latently determined by addition and subtraction. At first subtracting a larger number from a smaller number was considered nonsensical. But starting from the simple acceptance that "5-8" can at least be consistently viewed as the number which added to 8 gives 5, and other similar examples, it was discovered that such numbers had only one consistent behavior.

So they were accepted, given a name "negative numbers" and a notation "-x", short hand for "0-x".

And again, once addition, multiplication, (and optionally exponentiation) were defined, the expressions x*x = -1 (or x = sqrt(-1)) were run into, they were initially considered non-sensical.

But starting from acceptance that it at least makes sense to say that "the square of the square root of -1", is "-1", it was discovered that roots of -1 could be worked with consistently using the already accepted operations that produced them.

The numbers that included square roots of -1 were given a name "imaginary numbers", the square root of -1 given notation, "i", and we got complex numbers that had both real and square root of -1 parts.


I think it's the same reason why negative numbers were invented: It lets you do more with algebra than you could before (some of which, like raising something to a power leading to a sine wave is pretty weird, but turns out to be useful in engineering, etc.), and everything else still "just works" the same way as before.

(Admittedly the applications of negative numbers are much more obvious.)


And why zero was invented.


Part of the issue is that there is no simple Why. To invent one is to either petition history or invent some perspective. It's not a bad idea to do these things, didactically, but they're unnecessary for the material. Or, said another way, there's something to be said for discovering your own "why" through familiarity with the many wonderous properties the complex numbers enjoy.

That said, that's a frustrating answer. An excellent book which does just what I said above and tells a lightly fictionalized "just so" story of the "history and development" of mathematics as an excuse to introduce everything in a motivated fashion is MacLane's Mathematics: Form and Function which I just recommend endlessly.

https://www.amazon.com/Mathematics-Form-Function-Saunders-Ma...


> Why? I wish a textbook tell me why, right there

If you're a programmer, consider whether it's easier to reason about a function that always returns a value, or a function that sometimes returns a value and sometimes throws an exception. The latter is a partial function and typically complicates reasoning because of the exceptional cases, the former is a total function and is fairly trivial to reason about (like multiplication vs. division where you have to consider division by zero).

Before complex numbers, the square root function was partial, but adding complex numbers made it total, so it simplified a lot of theory and enabled new types of analysis. Fortuitously, it also turned out to be very useful when applied to the real world.


Complex numbers are algebraically closed, reals are not. This means, if you write a polynomial with complex coefficients, it will have (only) complex roots. Analogous statement for the reals isn't true.


That terse summary is basically misleading, so I can see why it's not helpful. It would be a much better one line summary to say

"Complex numbers were invented so that we could name (and describe) all roots to a quadratic equation"

of course that also requires further explanation, but at least it's not leading the reader down the wrong path.


Very simply speaking, complex numbers are numbers that always have roots. That's one aspect of it.

I wrote a quick piece [0] about it some time back. Hope that adds to your knowledge.

[0]: https://convoluted.bearblog.dev/complex-numbers


At least it gave you one round of a "why" answer!


It might have been a reason, mathematicians wanting everything well defined etc. But here's a better way to think about it: On real number line, addition defines shifts and multiplication defines scaling. If you are in two dimensions, what is the equivalent? We define a 2 dimensional number such that multiplication defines scaling + rotation. The complex in complex number should not be read as complicated but like duplex or two things intertwined together.

The next question is why bother? What's the point? Turns out that important real life signals, like AC voltage and current, are sinusoidal. And real life electrical machines shift the phase of these signals. By using complex numbers to represent these signals, you can continue to use simple maths of DC circuits to analyze AC circuits. So you'd can still use V = IR, but R of a AC machine like motor will be impedance (generally called Z), represented by a complex number.

I found first few pages of MD Alder's complex analysis for Engineers indispensable in demystifying this complex stuff. Here's a quote from first paragraph "If Complex Numbers had been invented thirty years ago instead of over three hundred, they wouldn't have been called `Complex Numbers' at all. They'd have been called `Planar Numbers', or `Two-dimensional Numbers' or something similar, and there would have been none of this nonsense about `imaginary' numbers"


Because mathematicians like to make up things and theories to feel important, since they are impractical people who don't do anything important in the real world.

Half-joke apart (and I studied math in college, BTW, as my major, with Sanskrit as a minor), complex numbers have many uses in the real world, in engineering and other areas.

See the Applications section of https://en.m.wikipedia.org/wiki/Complex_number


Tons of things and phenomena in the real world are based on mathematics. Plant and leaf patterns, ocean waves, water flowing in tubes or channels, the weather, mineral and plant and animal structures, rain and snow and ice, mountains, deserts, glaciers, floods, thunder and lightning, electromagnetism, fire, etc., etc., etc. And some of those things are really based on imaginary numbers.

;-)


Mathematicians are infinitely better than statisticians, though, because the definition of a statistician is "a person who can have his head in an oven and his feet in a freezer", and say, "on the average, I am feeling quite comfortable".


My, my,

HN downvoter guy,

with the negative eye.

You like to chew,

any kind of view,

that you think is askew,

according to your

half-blind negative eye.

You poor, sad, HN guy.


I like how the volume is lower on some channels


[...] According to Allied Market Research, the global astrology industry was valued at $12.8 billion in 2021, up considerably from $2.2 billion in 2018. By 2031, it’s expected to rise to $22.8 billion.

Same thing with tarot. These are real markets and will bloom proportionally with depression and lack of education. So when you see $22.8 billion market increase, you now know what you are actually looking at.

On the other hand, these are just 2 games, really. Think gaming industry has to produce a miriad of games to hit $300 billion. It's just they don't sell you hope, just some cheap entertainment to evade from a crappy life.

Show me 2 games worth $12 billion market share.

p.s. and co-star really took it to the next level. beautiful design, extremely well built weekly readings, and i think their backend is coded in haskell :-) Ofcourse i'll buy some hope to get me through to the end of the week.


Ummm, Call of Duty is $31 billion. I'm sure NBA, F1, PGA are all probably multi-billion as well.


LIFETIME series. lifetime.


>It is installed by default everywhere. I don’t need administrative privileges to deploy Perl code almost anywhere. That is extremely empowering.

Not true anymore. FreeBSD dropped it from base.

>With a great amount of discipline, Perl scripts can be successfully scaled up into large, complex systems.

History shows different. Perl was never designed for this.

>I can be confident that a Perl script I write today will run unaltered 10 years from now, modulo external collaborators.

I concur. I also have 10-ish lines perl scripts running on my systems since 10-ish years, doing exactly what it was written to do. And if the data protocol changes I will just drop 10-ish lines of code and write new 10-ish lines of weird looking, compact and efficient code. I never care understanding my code. If i ever read it again it's just to have a "wow, what does this even do" moment at my own code. For me, write-only is a feature.

>Perl can be used nearly as a shell replacement for very quick scripting.

Yet there is no generally available shell (like Bash or zsh) written in Perl. This is a weird thing I'm still trying to cope with in 2023. It may be because the term "shell replacement" is used wrong. Did you mean "shell programming"?

>Perl has a small set of core syntax and is very extensible and flexible in adopting new paradigms.

... I don't know. 27 years later, I still like to flex my reptilian brain reading perlsyn manpage. I like to think of perl syntax as a set of loose rules which you can bend to your liking. And the things you can come out with... oh, boy.

Perl is good tool for coming up with a solution really quick. And most of the times, you will just keep running that code for ten-ish years to come. Also, Perl is more of a philosophy than a programming language, like Forth is.

Its biggest disadvantage was the community itself. They just kept using it wrong, over and over, trying to serve the greed of a corporate world. The proof of this is Perl 6, the community rewrite of Perl. Looks cool. Won't use it. I think that's why it's now mostly referred to as "raku" instead of "Perl 6". It's not a Perl.


> >With a great amount of discipline, Perl scripts can be successfully scaled up into large, complex systems.

> History shows different. Perl was never designed for this.

I beg to differ - after all, what was Perl 5 about? Adding objects and modules were features only needed for large programs. Just looking at CPAN shows numerous modules of significant size and complexity.


i am a grey beard. i confirm "the catastrophe happened when people mistook this it for a backend development language"


I suppose I’m a grey beard (in industry is 96ish) and I mean, it’s fine as a backend language in so far as dynamically (or even loosely) typed languages go. It’s just as easy (or hard) to write modular well tested code as in any number of other languages in wide use for backend services, in my XP.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: