News for hackers. Stuff that matters.
Re:Coastline Paradox by irrational on Saturday December 30, 2023 @07:35PM (#38820716)
I’ve never taken calculus (the last math class I took was an algebra class in high school in the late 1980s). But I read a description of calculus once that used the example of trying to figure out the length of a coastline and described how one could use smaller and smaller sections to estimate the length and this is what calculus is all about. But, this article doesn’t mention calculus at all, so now I’m wondering if my impression of what calculus is used for is all wrong.
Re:Coastline Paradox by Remnant44 on Saturday December 30, 2023 @07:40PM (#38820744)
Calculus deals with things that are sufficiently smooth on a small scale, and thus converges. For example, approximating a circle with smoother and smoother polygons. The length of those polygons will converge to the circumference of the circle.

The coastline paradox is the classic example of a fractal; the dimension of a fractal is actually greater than that of the space it lives within!

Re:Coastline Paradox by fellerts on Saturday December 30, 2023 @08:21PM (#38820956)
Unless when it doesn’t, see the problem of “squaring the circle”. Somewhat related to the coastline paradox as well.
Re:Coastline Paradox by ravi-delia on Saturday December 30, 2023 @11:58PM (#38821933)
I think what you're referring to is the false proof suggesting that pi=4. That is not what squaring the circle is, and does not in fact become smoother and smoother but rougher and rougher
Re:Coastline Paradox by infradig on Saturday December 30, 2023 @07:58PM (#38820831)
The Wikipedia article states it's not really fractal.
Re:Coastline Paradox by Remnant44 on Saturday December 30, 2023 @08:28PM (#38820987)
It's not really a fractal in the sense that a fractal is a mathematical object, and a coastline lives in the real world. As your ruler gets smaller, it also becomes impossible to define what even is the coastline anymore - is it the wetted sandline? On a sufficiently small scale, where is the interface between land and sea?

Thus at sufficiently small scale it does break down, but the fractal nature over a very broad range of scales is clear; I feel like the Wikipedia article is tripped into pedantry at that point :)

Re:Coastline Paradox by bee_rider on Sunday December 31, 2023 @02:09AM (#38822376)
On a sufficiently small scale, I guess you would have to start worrying about quantum effects. So, you would still have trouble measuring the coastline maybe not a paradox anymore but still quite a pain.
Re:Coastline Paradox by Solvency on Saturday December 30, 2023 @07:51PM (#38820795)
The word converge always confused me here when learning English. It's not like the edges of a circular polygon "converge" even in a hypothetically perfect circle. They more....blend together, or lose their edge. Either way maybe I've never properly understood the term.
Re:Coastline Paradox by yuriks on Saturday December 30, 2023 @08:19PM (#38820946)
What converges is the resulting value of the calculation. As you add more lines the approximate result (of the circumference) gets closer and closer to the true answer. It's not necessarily referring to the geometric shape of the polygon. (Though you can also see it as, if you take any given point on the circumference of the polygon, as you add more segments, that point will get closer and closer to the true edge of a circle.)
Re:Coastline Paradox by HL33tibCe7 on Saturday December 30, 2023 @07:39PM (#38820738)
Calculus and why it doesn’t help here are mentioned in the “mathematical aspects” section of the article
Re:Coastline Paradox by AdamH12113 on Sunday December 31, 2023 @01:33AM (#38822273)
Your impression is exactly right. The difference lies in something called smoothness. Loosely speaking, a smooth curve is one where if you zoom in far enough at any point, the curve starts to look like a straight line. You might have to zoom in a very long way, but as long as you eventually end up with something that looks straight, it counts as smooth, even if the overall shape is very wiggly. Loosely speaking, smooth curves behave well when you use calculus on them.

The coastline paradox is a situation where that doesn't happen. No matter how far you zoom in on a part of the coastline, you always find more detail -- bays and peninsulas, cliffs and inlets, pits and protrusions, tiny bumps, and so on. And the more of that detail you try to include in your measurement, the more your measured length will increase. In mathematics, we say that the length diverges. If you were measuring a smooth curve, the length would converge on a single value -- incorporating more detail would change the length, but only by tinier and tinier amounts.

Now of course a real coastline is a very complicated thing, and there are lots of practical obstacles to measuring one very precisely. So at some point we stop talking about real coastlines and start talking about a mathematical ideal, a kind of perfect roughness that's the opposite of the perfect smoothness we use for calculus. Such a perfectly rough curve is called a fractal.

There are also other things that can break calculus -- pointy curves, discontinuities, and infinities can all cause trouble.

Re:Coastline Paradox by nonrandomstring on Sunday December 31, 2023 @07:00AM (#38823460)
Great explanatory writing, thanks.

> In mathematics, we say that the length diverges. If you were measuring a smooth curve, the length would converge on a single value -- incorporating more detail would change the length, but only by tinier and tinier amounts.

Can you say something bout the exponential curve in this context? IIRC whatever level we zoom to we see the same curve, neither converging nor diverging. Is there something special we should take note of here?

Re:Coastline Paradox by luca3v on Sunday December 31, 2023 @08:33AM (#38823925)
The exponential curve does look like a line when you zoom in very close to a point. For example, f(x) = e^x looks linear with slope e^x near x. You can see that, for small epsilon, e^(x+epsilon) - e^x is approximately epsilone^x, with an error term of the order of epsilon^2 e^x
Re:Coastline Paradox by AdamH12113 on Sunday December 31, 2023 @08:24PM (#38828984)
I think you might be remembering something else -- an exponential curve is proportional to its own rate of change. Exponential curves are smooth in the way I described -- if you zoom in far enough, they look straight.

The part about being proportional to its own rate of change does make exponential curves very important in calculus (and thus in science in general). Sine waves also have this property (although in a more complicated way). This is why you see exponential decay and sinusoidal oscillation so much in physics.

Re:Coastline Paradox by bmacho on Sunday December 31, 2023 @03:41AM (#38822660)
> But I read a description of calculus once that used the example of trying to figure out the length of a coastline and described how one could use smaller and smaller sections to estimate the length and this is what calculus is all about.

According to https://en.wikipedia.org/wiki/Outline_of_calculus:

> Calculus is a branch of mathematics focused on limits, functions, derivatives, integrals, and infinite series.

The coastline paradox is definitely an example of something that interests calculus people, and to tackle the problem they most likely will use a bunch of concepts and theorems of calculus.

However calculus, as a field is not this paradox.