> First, of course, was a smile of recognition. Then came a “wait a minute” as you realized that the Gibbs phenomenon doesn’t get smaller as you add more terms to the Fourier expansion;
Actually, it gets. Gibbs phenomenon is an artifact of a very specific algorithm on very specific inputs. It doesn't say nothing on "approximation of square waves with sine waves" in general, and arguably, it doesn't appear meaningfully in any types of approximation.
You can approximate a square wave with sine waves with arbitrary precision in most approximations (L1, L2, pointwise etc). What you can't do is to have the largest error less than half the jump at discontiunity, but it is because sum of sine waves is continuous. There is no overshoot or Gibbs of any sort.
No it doesn't, since the quote is precisely about Fourier series.
But you make a great point: the original comic doesn't mention Fourier (only the blog post does) so the comic is not wrong in not showing Gibbs oscillations at the end!
If you've ever used an oscilloscope to look at a square wave in electronics, or did any audio synthesis, you look at the ending of the post and raise an eyebrow (in the way Spock does it), and note that yes, this is what square waves are in real life. The corner wobble is normal.
Well it can be. But you will also encounter squares that don't overshoot at all, but rather undershoot.
Also, you probably know that your oscilloscope probes have a small trimmer inside them that is to be adjusted to get rid of exactly this artifact. You hook up the probe to the calibrate output of your scope and turn that trimmer till the square wave from the calibrate output is indeed square.
If your scope always showed that ringing, your probe is broken or needs calibration.
I recall a research paper claiming to have measured a finite amount of time for an electron to jump between atomic energy levels. If true, then it is likely everything takes at least some time. Except if you yourself move at light speed.
Except that no driver has infinite bandwidth, and no connection has perfect impedance along the entire length from start to finish. The "wobble" will reappear when you a scope with an even higher sample rate. Which means it is real.
Different signals have different rise times. In fact in any meaningful high frequency device (above say 10 MHz) the electrical engineers layouting the PCBs in your device must know those rise times, otherwise they are building a transmitting antenna.
It is pretty simple: the faster a transition is the higher its bandwidth. A theoretical instant transition would require infinite frequency bandwidth. In reality anything conducting electricity is fast, but not faster than the speed of light and every transmission line will have real world characteristics that limit its bandwidth at some point.
So the rise time and ringing of signals is not just an artifact of the oscilloscope (although it can be if your probes are not calibrated). Overshoot and ringing can really be there.
In order for this to work, you'd need to know the direction of the observer you're targeting, since the relative phases/amplitudes of gravitational waves would only cancel out in some directions and not others.
Sin cos are exponentials. There is a shorter way to create a square wave function: take a tiny base 0<b<1, and any initial function 0<f(x)<1
Iterate b^f(x), and it produce a square wave with smooth corners
TIL that this comic is the origin of the term "nerd sniping". I knew that XKCD was influential (especially among, well, nerds), but I didn't realize it was this influential...
This never made sense to me. When I understand the joke, the explanation is meaningless to me. But it doesn't detract from my experience.
When I don't understand the joke, the explanation does often make me find it funny.
Like sure, it is obnoxious to have a joke I understand have explained specifically to me, the same as having anything I understand have explained to me and only me. But that's not what happens in blog posts and online threads (usually).
Alternatively, you can just mess with the measuring device's precision until the corners are imperceptible.
But if that's still hard, then we can still achieve it with sufficient, or perhpas too much, alchool. Just avoid a particular amount of blood alchool, the scientist will instantly call your black holes out.
> First, of course, was a smile of recognition. Then came a “wait a minute” as you realized that the Gibbs phenomenon doesn’t get smaller as you add more terms to the Fourier expansion;
Actually, it gets. Gibbs phenomenon is an artifact of a very specific algorithm on very specific inputs. It doesn't say nothing on "approximation of square waves with sine waves" in general, and arguably, it doesn't appear meaningfully in any types of approximation.
You can approximate a square wave with sine waves with arbitrary precision in most approximations (L1, L2, pointwise etc). What you can't do is to have the largest error less than half the jump at discontiunity, but it is because sum of sine waves is continuous. There is no overshoot or Gibbs of any sort.
No it doesn't, since the quote is precisely about Fourier series.
But you make a great point: the original comic doesn't mention Fourier (only the blog post does) so the comic is not wrong in not showing Gibbs oscillations at the end!
If you've ever used an oscilloscope to look at a square wave in electronics, or did any audio synthesis, you look at the ending of the post and raise an eyebrow (in the way Spock does it), and note that yes, this is what square waves are in real life. The corner wobble is normal.
It's also normal to avoid it by making the transitions slower on purpose. Often because of EMI.
Well it can be. But you will also encounter squares that don't overshoot at all, but rather undershoot.
Also, you probably know that your oscilloscope probes have a small trimmer inside them that is to be adjusted to get rid of exactly this artifact. You hook up the probe to the calibrate output of your scope and turn that trimmer till the square wave from the calibrate output is indeed square.
If your scope always showed that ringing, your probe is broken or needs calibration.
Depends on the resolution. The higher sample rate of the oscilloscope, the less the "wobble". Which means it doesn't really exist.
Does that mean that real life has truly instantaneous changes, and the wobble we see is 100% an artifact of the measuring device?
I recall a research paper claiming to have measured a finite amount of time for an electron to jump between atomic energy levels. If true, then it is likely everything takes at least some time. Except if you yourself move at light speed.
It doesn't. So it's not a 100% artifact of the measuring device. The signal itself is, in the end, produced by stacking sine waves.
The change is not instantaneous. You'll see softened corner without a "wobble".
Except that no driver has infinite bandwidth, and no connection has perfect impedance along the entire length from start to finish. The "wobble" will reappear when you a scope with an even higher sample rate. Which means it is real.
Different signals have different rise times. In fact in any meaningful high frequency device (above say 10 MHz) the electrical engineers layouting the PCBs in your device must know those rise times, otherwise they are building a transmitting antenna.
It is pretty simple: the faster a transition is the higher its bandwidth. A theoretical instant transition would require infinite frequency bandwidth. In reality anything conducting electricity is fast, but not faster than the speed of light and every transmission line will have real world characteristics that limit its bandwidth at some point.
So the rise time and ringing of signals is not just an artifact of the oscilloscope (although it can be if your probes are not calibrated). Overshoot and ringing can really be there.
Yes, because as per Fourier decomposition of square waves, a "perfect" corner requires infinite bandwidth.
If you low pass filter, which any detector will do, it should go away.
Good news is, LIGO is only sensitive below 10 kHz, which naturally limits the number of expansion terms (neutron stars / black holes) you need!
"if you low pass filter" is this not equivalent to using a different sum of freqs at the source?
In order for this to work, you'd need to know the direction of the observer you're targeting, since the relative phases/amplitudes of gravitational waves would only cancel out in some directions and not others.
the comic says you are targeting earth in the alt text and I think it can be safely assumed that earth is the target just as HN is US centric
For some reason, this is quite funny
I find most XKCDs quite funny, happy thanks giving all of HN
Sin cos are exponentials. There is a shorter way to create a square wave function: take a tiny base 0<b<1, and any initial function 0<f(x)<1 Iterate b^f(x), and it produce a square wave with smooth corners
but still the joke is very funny and not too far from correct.
related xkcd: https://xkcd.com/356/
TIL that this comic is the origin of the term "nerd sniping". I knew that XKCD was influential (especially among, well, nerds), but I didn't realize it was this influential...
Fun Friday afternoon for lawyers to debate! Could you get someone on murder for this?
Shows intent. mens rea. So knew or likely knew the outcome of the snipe. Also premeditated.
Not a lawyer, not your lawyer etc etc.
Don't know, but you could print the comic on a panel and flash it to a lawyer while he crosses the road.
the rare meta nerd sniping
[dead]
As they say “Explaining a joke is like dissecting a frog: you may learn a lot but something dies.”
This never made sense to me. When I understand the joke, the explanation is meaningless to me. But it doesn't detract from my experience.
When I don't understand the joke, the explanation does often make me find it funny.
Like sure, it is obnoxious to have a joke I understand have explained specifically to me, the same as having anything I understand have explained to me and only me. But that's not what happens in blog posts and online threads (usually).
But the next day, when you take the frog out of the fridge, you give a little jump as its heart starts again! Exactly like a good joke!
Let's dissect this frog- can you explain why this is funny?
https://www.explainxkcd.com/wiki/index.php/3317:_Gravitation...
no but they can
Alternatively, you can just mess with the measuring device's precision until the corners are imperceptible.
But if that's still hard, then we can still achieve it with sufficient, or perhpas too much, alchool. Just avoid a particular amount of blood alchool, the scientist will instantly call your black holes out.
if you can arrange infinitely many black hole binaries at odd harmonic frequencies, a 9% overshoot at the corners feels like an acceptable tolerance.
bonus: also related very early xkcd https://xkcd.com/26/
There is also an alternative expansion
https://www.smbc-comics.com/comic/2013-02-01
You just need to add more black holes, ideally infinite.
That's what she said
You will surprise more than just a bunch of astronomers if you manage to move black holes like that.
Eh, looks square wave enough for me