Rational Trigonometry
stijnoomes.com
stijnoomes.com
> I became interested in rational trigonometry when I was working on a project to formally verify drone collision avoidance software. Because all calculations are purely algebraic, involving no transcendental functions, theorems are easier to prove. ...
> Another advantage is accuracy. Because a computer can carry out rational arithmetic exactly, rational trigonometry applied to rational points yields exact results. No need to be concerned about the complications of floating point numbers.
> A less obvious advantage is that the theory of rational trigonometry is independent of the underlying field
What sort of interesting results come out of using a non-real field here?
Just because I can do a Google Scholar query using "rational trigonometry" and find papers saying things like:
"Explicit tough Ramsey graphs" at https://arxiv.org/pdf/0807.2692.pdf . "We present here two new explicit constructions ... The first construction is based on a remarkable new approach of Wildberger to trigonometry and Euclidean geometry."
does not mean I am qualified to judge what is "interesting", or figure out which use non-real fields.
Personally I would have said manipulation of trig identities and such is also purely algebraic.
> ... very becoming-numerate generation invests enormous effort in the painful calculation of the lengths and angles of complicated figures. Surveying, navigation and computer graphics are intensive users of the results. Much of that effort is wasted, Wildberger argues. The concentration on angles, especially, is a result of the historical accident that serious study of the subject began with spherical trigonometry for astronomy and long-range navigation, which meant there was altogether too much attention given to circles. ...
> Having things done better is one major payoff, but equally important would be a removal of a substantial blockage to the education of young mathematicians, the waterless badlands of traditional trigonometry that youth eager to reach the delights of higher mathematics must spend painful years crossing
Whether that's correct is different. https://handwiki.org/wiki/Rational_trigonometry seems to give a good description of opposing views.
If "formal verification" involves using a software-based proof assistant or automatic theorem prover then perhaps that easier to encode for those tools via rational trigonometry?
Why not ask him directly?
In contrast, arithmetic on rational numbers can be implemented exactly; at least, up to the memory limits of the machine (e.g. using pair of bignums for numerator/denominator)
Sorry, I seem to have missed that part. The article just ends suddenly. It's an interesting idea, but what's the benefit?
E.g., one thing that seems not very compatible is complex numbers: I can't see how e^(i*alpha) would benefit.
So ... it's a specialized tool?
Any angle with a rational tangent or cotangent has some representation as a Gaussian rational (usually requiring a non-unit magnitude, though), and these angles are closed under addition and subtraction (corresponding to multiplying and dividing these Gaussian rationals). And given a Gaussian integer or rational, we can readily take its squared magnitude (a^2 + b^2) to get an integer or rational, and we can in the same way take the squared cosine or squared sine of its angle (a^2/(a^2 + b^2) or b^2/(a^2 + b^2)) to get a rational.
RT boils down to doing trigonometry with dot products and without square roots. There's a temptation to replace dot products with ordinary trigonometry, but RT says don't do it because it's a step back.
> You can work over the rational numbers, but you don’t need to. You could work over real or complex numbers, or even finite fields. Because you don’t take square roots, you can work over fields that don’t necessarily have square roots. If you’re working with integers modulo a prime, half of your numbers have no square root and the other half have two square roots. ...
> Why would you want to do geometry over finite fields? Finite fields are important in applications: error-correcting codes, cryptography, signal processing, combinatorics, etc. And by thinking of problems involving finite fields as geometry problems, you can carry your highly developed intuition for plane geometry into a less familiar setting.
"Orientation Modeling Using Quaternions and Rational Trigonometry" at https://www.mdpi.com/2075-1702/10/9/749 has an example of using it with complex numbers:
We can define the quadrance of z by:
Q(z) = z · z̅ = a² + b².
Spread: The spread can be defined in several ways ...
in a more general way, the spread can be specified
for any complex number by the next expression:
s(w) ≡ b² / a²
The paper includes the section "Rotations on the Plane" which may address your e^(i*alpha).https://www.youtube.com/@njwildberger
His Trig series:
https://www.youtube.com/watch?v=GGj399xIssQ&list=PL3C5849871...
His videos about multisets released in the last weeks have been super interesting. They seem like a very promising alternative to classical set theory that maybe could be used for some better type system.
For those familiar with "normal" (irrational?) trig, it's certainly an extra effort to learn, and may hinder communication, which gives a poor cost/benefit ratio.
For those unfamiliar with "normal" trig (e.g. not reaching that stage in school, or having later forgot it all), then rational trig certainly seems easier to learn and understand. I also like the way it generalises, e.g. to hyperbolic space (relativity), by simply changing the dot-product.
Sorry; what context was this in? UNSW maths department or some other social circle? I know I was anticipating lockdowns some time around then for exactly the same reasons as you list, but I assumed that all the mathematicians would have figured it out around the same moment.
What does this mean? What shaky philosophical foundations?
He highlights in some of his Youtube videos that in respected Math textbooks the definition of real numbers is left vauge.
In his opinion set theory has the same kind of holes the we are expected to accept that we can add an infinite quantity of things to a Set by describing a function or simply having a desciption of the elements of the Set.
The gist of the argument is that addition + other operations on non-computable numbers (which the real numbers contain) require infinite algorithms or something similar (unlike addition on computable irrational numbers which may require infinite work, but the algorithms are finite). You can therefore get situations where, say, the tenths digit in a sum of non-computable numbers is not defined because of potentially infinite carries, and there's no way to determine if the sequence of carries terminates or not. He discusses the problem in the context of different representations of real numbers, including infinite decimals, cauchy sequences, and dedekind cuts etc. This is just the gist of it.
ZFC models the set of real numbers, but only provides a model for a measure-zero amount of specific individual real numbers. It just says "yeah they exist".
People like Wildberger believe that anything that exists in math should have some way of determining its exact value, otherwise, what is "it"?
https://mathoverflow.net/questions/44102/is-the-analysis-as-...
I suppose being a finitist allows one the get around what Hankins wrote.
Show HN: Simple pendulum simulation with rational trigonometry - https://news.ycombinator.com/item?id=12525068 - Sept 2016 (28 comments)
|P Q R|
|1 1 1| / 2
Rational trigonometry seems to me like it's just linear algebra, except it uses the squared sine instead of the cosine just to get a notion of angle that is 0 for parallel line. Lot's of linear algebra features are removed, but I'm not seeing much benefit from doing so.Likewise, we can take quadrance as primary; and, if we're so inclined, we can define distance as its square root.