by zamadatix · 2y ago · 0 comments
The Remez algorithm linked at the end still inspires curiosity though. Any other "numerically more useful" approximation algorithms folks want to highlight? The Padé approximant looks like another interesting candidate to read about.
A really good place to read up on it is the documentation for Chebfun.
https://www.chebfun.org/docs/guide/guide04.html
Also: be on the lookout for a blog post on using Chebyshev polynomials to efficiently compute error metrics for curves.
IMO it sits at a really interesting spot as a sort of “more robust” (hand-waves) iterative solver that doesn’t require inner products. You need to know something about the spectrum sure, but sneakily figuring out things about the spectrum is somewhere where people can show off their expertise I think.
Math department: “oh, look, we are very clever, see these pretty plots the differential equations generate and all the beautiful closed form solution we can make”
Me: “Hmm, very nice, I am not smart enough for this.”
Engineering department: “Complicated equation bad, smash with Taylor series, little part go bye-bye, big part is smooth.”
Me: “Yes this equation will match my brain nicely.”
In my undergrad, I was made to take 6 math courses, and about 18 physics courses which used that math [1]. Plus additional Engineering/CS electives. So over a 25-75 ratio of exercise to "real" stuff.
Much better ratio than boxing.
[1] If you decide that the math courses have nothing real/interesting in them. Which is not true.
Of course this "interested in applying concepts to solve the problem, not calculating the values in said solution" lean is probably why I was in a computer program instead of a math program in the first place :).
To build competence at these problems, you need to exercise the basic skills, of which computational skills are a big part. If you don't exercise your computational skills, you can't become good at mathematics in the sense of (1), (2), or (3). The same way you can't get to be good at boxing without doing a lot of pushups.
Now, not all teachers are good. Many certainly try to force students to do too much computational practice, compared to their level. But both as a student and later as a prof, I discovered that there is value is doing really dumb and complicated calculations by hand sometimes during your education. The reason is that many times when people your computational algorithm fails, you have to do the dirty thing by hand to figure out what went wrong. And depending on what you do, computing the 3rd derivative of a random trig function manually correctly with nuances is exactly what you need to do [1].
Well, not everyone. Many/most people do jobs that only require low levels of maths, and they might never need to do any of that. But a math course taught to everyone has to take a cookie cutter approach and that usually requires setting a high enough bar, so people who have to do the hard math at their job, have those skills. This is an unfortunate fact of resource optimization.
[1] I am an industry researcher now, and have to do all kinds of these crappy calculations.
What I mean by randomly calculate in this case is be given a random trig equation, be told to hand calculate an nth level Taylor series, compute the numerical answer to a few values, and move on to the next problem until you've done hundreds in the course. I do NOT mean running through dozens practice problems to get better at learning when/how to apply Taylor series (though that did come in a later course, it thankfully didn't need to be done by hand just as nobody was expecting you to calculate sqrt(5.7) by hand to learn calculus either).
This no doubt makes me a great calculator of 5th derivatives of trig functions but, except for the first few perhaps, at the expense of dozens of hours of being great at actually applying tricks to do things with what the Taylor series spits out instead. Like you say, the math course has to give cookie cutter training sometimes not about the direct concept at hand but that means you can be shit out of luck if that cookie cutter training wasn't relevant for boxing even though the topic itself can be.