Hacker Newsnew | past | comments | ask | show | jobs | submit | srean's commentslogin

These used to be super important in early oceanic navigation. It is easier to maintain a constant bearing throughout the voyage. So that's the plan sailors would try to stick close to. These led to let loxodromic curves or rhumb lines.

https://en.m.wikipedia.org/wiki/Rhumb_line

Mercator maps made it easier to compute what that bearing ought to be.

https://en.m.wikipedia.org/wiki/Mercator_projection

This configuration is a mathematical gift that keeps giving. Look at it side on in a polar projection you get a logarithmic spiral. Look at it side on you get a wave packet. It's mathematics is so interesting that Erdos had to have a go at it [0]

On a meta note, today seems spherical geometry day on HN.

https://news.ycombinator.com/item?id=44956297

https://news.ycombinator.com/item?id=44939456

https://news.ycombinator.com/item?id=44938622

[0] Spiraling the Earth with C. G. J. Jacobi. Paul Erdös

https://pubs.aip.org/aapt/ajp/article-abstract/68/10/888/105...


Except the helix curve shown in OP is NOT a loxodrome or rhumb line.

It has equal spacing on the surface between lines, a loxodrome can't have that property since by definition it must cross the meridians at the same angle at all times. That means it always gets denser near the poles.

---

Start with the curve:

x = 10 · cos(π·t/2) · sin(0.02·π·t)

y = 10 · sin(π·t/2) · sin(0.02·π·t)

z = 10 · cos(0.02·π·t)

Convert to spherical coordinates (radius R=10):

λ(t) = π/2 · t (longitude)

φ(t) = π/2 - 0.02·π·t (latitude)

Compute derivative d(λ)/d(φ):

d(λ)/dt = π/2

d(φ)/dt = -0.02·π

d(λ)/d(φ) = (π/2)/(-0.02·π) = -25 (constant)

A true rhumb line must satisfy:

d(λ)/d(φ) = tan(α) · sec(φ)

which depends on latitude φ.

Since φ(t) changes, sec(φ) changes, so no fixed α can satisfy this.

Conclusion: the curve is not a rhumb line.

this is how one should look for varying intersection angles:

https://beta.dwitter.net/d/34223


Indeed. It is one of the many well known spherical spirals / seiffert spirals.

You inspired me to submit one of my 2022 projects

https://observablehq.com/@jrus/spheredisksample

https://news.ycombinator.com/item?id=44963521

to fit the trend of the day. People may also enjoy

https://observablehq.com/@jrus/sphere-resample


In my early teens I used to try to create something like a equirectangular projection because when drawing it, it looked cool. Obviously I had no idea that it was called this. I was trying to draw reflections of a square window onto a sphere, and then I moved on to trying to cover the sphere in a checkered pattern. This is awesome to see, thank you!

An equirectangular projection just means plotting latitude and longitude in a rectangle.

Do you mean my diagonal grid that I projected back onto the sphere? I'm not sure that has a name.


Great to see you. I look forward for your comments on geometry, multivariate calculus and rotations.

Edit: fantastic graphics. You should submit the other one as an HN post too.


Don't forget this post, which spawned a discussion of Rhumb lines etc. in the comments: https://news.ycombinator.com/item?id=44962767

I had missed this one ! Thanks.

It is indeed raining spherical geometry today.


To quote the storytelling quality of Erdos's abstract:

"The simple requirement that one should move on the surface of a sphere with constant speed while maintaining a constant angular velocity with respect to a fixed diameter, leads to a path whose cylindrical coordinates turn out to be given by the Jacobian elliptic functions."


Jeez Erdos. This man was so prolific he was still publishing 4 years after he died :o

Many after he passed

Indeed.

One way to fix the problem is to sample uniformly not on the latitude x longitude rectangle but the sin (latitude) x longitude rectangle.

The reason this works is because the area of a infinitesimal lat long patch on the sphere is dlong x lat x cosine (lat). Now, if we sample on the long x sin(lat) rectangle, an infinitesimal rectangle also has area dlong x dlat x d/dlat sin(lat) = dlong x dlat cos (lat).

Unfortunately, these simple fixes do not generalize to arbitrary dimensions. For that those that exploit rotational symmetry of L2 norm works best.


If you want uniformly random on the spherical surface then uniformly at random in polar coordinates will not cut it.

To appreciate why, consider strips along two constant latitudes. One along the Equator and the other very close to the pole. The uniformly random polar coordinates method will assign roughly the same number points to both. However the equatorial strip is spread over a large area but the polar strip over a tiny area. So the points will not be uniformly distributed over the surface.

What one needs to keep track of is the ratio between the infinitesimal volume in polar coordinates dphi * dtheta to the infinitesimal of the surface area. In other words the amount of dilation or contraction. Then one has apply the reciprocal to even it out.

This tracking is done by the determinant of the Jacobian.


This is now crystal clear and obvious to me, thank you very much for the great explanation!

Happy to help.

> Is being a neglectful or unloving parent equal to being a bad person?

Emphatic yes. There are only a few such tests that would get an emphatic yes.

That he could have been genocidal but wasn't does not make him less qualified to be a bad person.


Questions for mathematicians out here.

Is there such a thing as quaternion analysis -- calculus of functions from quaternions to quaternions.

What would be their key theorems ? What would be the analogue of conformal mappings, if any ?

Any book recommendations would be gratefully appreciated.


Conformal mappings are not nearly as rich in >2 dimensions. There is a much stronger rigidity constraint and you end up limited to just Möbius transformations. The 2 dimensional case is special.

See: https://en.wikipedia.org/wiki/Liouville's_theorem_(conformal...


Yes of course, but I am curious about any interesting structures that functions from quaternion to quaternion may possess. I used conformal mapping as an example of an interesting structure. I could have used Cauchy Riemann as another example.

You're probably looking for something like Sudbery 1977,

https://dougsweetser.github.io/Q/Stuff/pdfs/Quaternionic-ana...

(published 1979, doi: 10.1017/S0305004100055638)


Fantastic. Thanks for the reference.


Thanks a bunch

A quaternion encodes uniform scaling + rotation. The logarithm of a quaternion is its axis-angle-nepers form, and vice versa.

    quat = sqrt( exp( nepers + radians * <axis> ) )
So I think with this exponential map, the rest of its calculus can be extended from that.

Heard the word 'nepers' after many decades. Are you by any chance an Electrical major ?

Thanks for your comment. To be fair, I had not done due diligence before asking. There's a Wikipedia pages on quaternion calculus.

Complex analysis (calculus on functions from 2D rotations to 2D rotations) is beautiful -- Once differentiability guarantees infinite differentiability. Wondering what would the analogue of that be for quaternions


I am surprised that you believe this. May I ask which country you are from and what experiences shaped this belief of yours

In India where a social media post pissed off someone. It was sarcastic criticism - no threats, no slurs). But won't get into details, sorry. (Also arrested a few times for participating in mass protests against corruption, but that was in a large group, so wasn't all that stressful.)

I also had bad luck when traveling to the US. Got detained by the CBP - I think because I accidentally sneezed on the officer and pissed him off. (Either that or I looked like some terrorist). Had to stay in a cell for more than a day. I wasn't even questioned!

Thankfully, nothing happened after that. Was good to catch up on sleep though, since there was nothing to do.


Indeed.

These are not good times for those who believe in liberal values. Waiting over a decade for the pendulum to swing back.


Shanghai blood moon reminded me of Blade Runner. Who knew that a 1982 imagination of LA Chinatown would look so similar to Shanghai in fool Moon.

I know it's partly because of the color pallette, but still


Because governments and elections can be influenced.


Seems like all the more reason to put the responsibility and blame on the government. You will never eliminate “influence”, and especially the more power the government has, the more value there is in spending on “influence”. The only possible solution is to hold the government and the representatives responsible for taking actions to the detriment of their constituents. If we give them a pass because “elections can be influenced” we might as well just disband the government and allow governing by the highest bidder.


It doesn't work that way. What we have seen is that big money will always find a way to corrupt the government. In any case the priority 0 of most elected officials is to raise money for their re-election.


Eh, even the distinction between private enterprise and government is largely irrelevant. At the end of the day, forces too large to fight conspire to make peoples' lives miserable.


This cathedral is crying for a pipe organ


I know it sounds like a pun, but I mean it seriously. The pipe organ and the 'vault' will do each other justice.


Or a hydraulophone


Given all the news about elevated levels of human Coyote interactions over the last 10 ~ 15 years, I wonder whether we are witnessing the beginnings of another domestication/speciation event -- new "dogs".

I just wish this does not turn adversarial.


Rangers and farmers are no longer culling them.


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

Search: