Talk:Heron's formula
This article is rated C-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
|
|
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 5 sections are present. |
Heuristic strategy to get Heron's formula
[edit]The formula for the area of a triangle (with sides lengths a, b and c):
- must be invariant under permutation of sides lengths a, b and c;
- assuming the area formula is a polynomial, it would have to be a homogeneous polynomial of degree 2 (since multiplying all side lengths by m, the area must be multiplied by m2);
- for degenerate triangles, i.e. when a side length equals the sum of the other 2 sides lengths, the area must be 0, so the polynomial would have to be divisible by the product of the three trinomials (− a + b + c) (a − b + c) (a + b − c): unfortunately this is a homogeneous polynomial of degree 3;
- assuming the formula for "the square of the area of the triangle divided by the perimeter of the triangle" is a polynomial, a homogeneous polynomial of degree 3 is just what we would need, i.e. A2/(a + b + c) = k (−a + b + c) (a − b + c) (a + b − c) for some positive constant k;
- using the Pythagorean theorem for a right triangle with 2 orthogonal sides of length 1, and thus hypothenuse √2 and area 1/2, we have (1/2)2 = k (1 + 1 + √2) (−1 + 1 + √2) (1 − 1 + √2) (1 + 1 − √2) which yields k = 1/16.
Thus, assuming the formula for "the square of the area of the triangle divided by the perimeter of the triangle" is a polynomial, the heuristic suggests: A = 1/4 √(a + b + c) (−a + b + c) (a − b + c) (a + b − c).
Now, how can we turn this heuristic strategy into a proof?
A homogeneous trivariate (in a, b and c) homogeneous polynomial of degree 3 is of the form (with 10 coefficients)
- α3,0,0 a3 + α2,1,0 a2 b + α2,0,1 a2 c + α1,2,0 a b2 + α1,1,1 a b c + α1,0,2 a c2 + α0,3,0 b3 + α0,2,1 b2 c + α0,1,2 b c2 + α0,0,3 c3.
Assuming the formula for "the square of the area of the triangle divided by the perimeter of the triangle" is a polynomial, with 10 pairwise non-similar triangles for which we know the sides and areas, we can uniquely determine the above coefficients, to get
- − a3 + a2 b + a2 c + a b2 − 2 a b c + a c2 − b3 + b2 c + b c2 − c3 = (−a + b + c) (a − b + c) (a + b − c).
Now, how do we prove that
- Assuming the formula for "the square of the area of the triangle divided by the perimeter of the triangle" is a polynomial
is a valid assumption?
- (Now correctly using the reply box.) In the heuristic, why is the following not tried, for some k to be determined?
- A3 = k [(− a + b + c) (a − b + c) (a + b − c)]2 — TentaclesTalk or ✉ mailto:Tentacles 18:21, 21 January 2023 (UTC)
In Heron's Metrica
[edit]Here’s a link to the original Greek (and German translation) https://archive.org/details/heronisalexandri03hero/page/19/mode/2up and here is an English translation https://web.calstatela.edu/faculty/hmendel/Ancient%20Mathematics/HeroAlexandrinus/Metrica.i.1-9/Metrica.I.1-9.html#prop8 –jacobolus (t) 20:41, 2 December 2022 (UTC)
As a geometric mean
[edit]Let
- α = (1/2)(− a + b + c), β = (1/2) (a − b + c), γ = (1/2) (a + b − c),
then
- A = √(α β γ) (α + β + γ)
so that the area is the geometric mean of the product and the sum of same three variables. — TentaclesTalk or ✉ mailto:Tentacles 03:22, 21 January 2023 (UTC)
- Welcome back to Wikipedia after a long absence from editing.
- Do you have another problem/topic where this point of view was insightful? It’s plausible one could be found, but there are plenty of other related formulas where these variables show up as etc. etc., where a geometric mean interpretation may not make much sense.
- An alternative point of view that I have seen in at least a couple sources before and seems fruitful is to take as four variables such that (or for symmetry negate or negate the other three), and then look what triangles and other objects are generated under various permutations and sign flips of those quantities. But I think this rather belongs in Heron's formula or other trigonometry articles rather than here per se. –jacobolus (t) 04:16, 21 January 2023 (UTC)
Imaginary area
[edit]I deleted the following unsourced claim:
- If values are given such that a, b, and c do not correspond to a triangle, the value for A is imaginary.
While the sqrt in the Heron formula may be interpreted as an imaginary number if the argument is negative, that much is not notable. If the area is interpreted as imaginary, it should be sourced. Johnjbarton (talk) 20:03, 16 January 2025 (UTC)
- The result of Heron's formula is imaginary. Interpreting this as an "area" is going to require some creativity and squinting. –jacobolus (t) 20:16, 16 January 2025 (UTC)
- Here's a source, a book review JSTOR 27642242 (see also JSTOR 2695295, which won the Lester R. Ford Award in 2001)
A geometrical interpretation from these papers is as a triangle in a pseudo-Euclidean plane with signature (1, 1). –jacobolus (t) 20:45, 16 January 2025 (UTC)If Heron's formula is applied to find the area of a nonexistent triangle with sides , , and , the answer is . Despite appearances, this outwardly nonsensical result is meaningful. In fact, the triangle exists in , and Heron's formula correctly finds its (imaginary) area.
- Excellent, thanks! Johnjbarton (talk) 22:17, 16 January 2025 (UTC)
- I added content based on the ref, please review. Johnjbarton (talk) 22:33, 16 January 2025 (UTC)
- I think this would be better placed in a section toward the bottom rather than in the leading § Example. –jacobolus (t) 00:41, 17 January 2025 (UTC)
- I moved it to the Generalizations section. —David Eppstein (talk) 00:51, 17 January 2025 (UTC)
- I think this would be better placed in a section toward the bottom rather than in the leading § Example. –jacobolus (t) 00:41, 17 January 2025 (UTC)
Notes section
[edit]@Jacobolus (in response to [1]): It's definitely reasonable from a reader's perspective to not have a separate notes section for a single footnote, but I personally think that it would make the page more maintainable. Of course, Wikipedia's WP:NOTABOUTUS, but I'm just curious if you agree or not. /home/gracen/ (they/them) 20:38, 17 January 2025 (UTC)
- I think it can work either to have separated or consolidated sections. Personally I prefer consolidated notes/references sections because they are simpler and because they forestall the sometimes occurring pedantic arguments about whether it's acceptable to add citations to text notes or add textual annotations to reference notes; instead any kind of note can include either type of material or both without worry. As a minor point I also prefer footnotes that say [1] or [a] instead of [Note 1]. In this particular case where there's only one text note, I also don't think it's worth splitting it into a separate section. YMMV. If several editors prefer split sections I'm willing to abide by general preference though. –jacobolus (t) 00:39, 18 January 2025 (UTC)
- That all makes sense; thanks for indulging my curiosity. The main reason I think it's more maintainable is because I'm kind of an organization freak and I find it easier to work with material when it's all partitioned off into sections. Of course, it's just a matter of personal preference and I'm also willing to abide by consensus. /home/gracen/ (they/them) 14:39, 18 January 2025 (UTC)
- In my opinion, the proper organization of articles places only references in the footnotes. Text, other than explanations of the relationship of sources to the content, belongs in the body of the article. Content in a footnotes is more difficult for readers to read and for editors to edit. Content in footnotes is not notable: if the content were notable it would appear in the article. Content in footnotes signals that the editor is forking the logic of the paragraph, almost never for a good reason. In my experience with Wikipedia footnotes, they often contradict the article, are original research or are trivia. Not 100%, but close.
- In the case of this article, I think the footnote about the calculator belongs in a caption for the calculator widget. As it stands, the calculator is in a section with a formula, implying that is the formula is computed in the calculator. Only by reading the footnote do reader realize that it computes something different. (Yes, my bad). Johnjbarton (talk) 16:30, 18 January 2025 (UTC)
- It is the formula computed in the calculator, just computed in a specific order (which would make no difference whatsoever in any number system following the ordinary laws of arithmetic). Being careful to avoid numerical issues is essential for any computer implementation in inexact arithmetic, but the details here are irrelevant to most readers and should not be shoved in anyone's face. As for your more general point: I often feel the opposite. Many articles shove irrelevant trivia or technical minutiae into the main article body that should be put into footnotes instead (if only because when such information gets removed entirely it will inevitably be restored by insistent pedants). Being outside of the narrative flow and thus harder to read is the entire point of footnotes, and is beneficial whenever the content of the note would be distracting to the main point and flow of the article. –jacobolus (t) 16:56, 18 January 2025 (UTC)
- I think that in an article having short footnotes (which can contain explanations of the footnotes) and a separate bibliography section, explanatory footnotes and short footnotes possibly containing explanations of the footnotes should be consolidated into one section, not separate. In this case we have long footnotes instead, with no explanations, so separating them or consolidating them are both ok, but I prefer consolidated. —David Eppstein (talk) 17:59, 18 January 2025 (UTC)
- I agree that a footnote is a good place for the implementation detail. I don't have strong opinions about consolidating versus separating in this case. Leaving them consolidated seems fine. Having a "Notes" section for just one note seems a little unwieldy. XOR'easter (talk) 19:09, 18 January 2025 (UTC)
- I completely agree about your second point. I see reference footnotes as being a replacement for inline text that says "this information is taken from [source]". Such information most certainly has a place in an encyclopedia (as does some trivia, as long as it has real value in inclusion), but just not in the regular flow of the text.As for the consolidation or separation of footnotes, I appreciate everyone who chimed in, and I wanted to share a benefit that I've noticed as a reader to grouping footnotes. My eyes usually skip over footnotes in the [1] style, but they don't skip over those in the [a] or [note 1] style. I think it's useful to indicate to readers what kind of footnote they're looking at so they can decide whether or not it's what they're looking for. If you're looking to verify a claim, you don't want to see an explanatory footnote, and if you're looking for further explanation you don't want a citation. /home/gracen/ (they/them) 20:27, 18 January 2025 (UTC)
- Purely explanatory footnotes are often better omitted or integrated into the main text. For a horrific example of explanatory footnotes gone bad, see 24-cell. —David Eppstein (talk) 20:57, 18 January 2025 (UTC)
- It is the formula computed in the calculator, just computed in a specific order (which would make no difference whatsoever in any number system following the ordinary laws of arithmetic). Being careful to avoid numerical issues is essential for any computer implementation in inexact arithmetic, but the details here are irrelevant to most readers and should not be shoved in anyone's face. As for your more general point: I often feel the opposite. Many articles shove irrelevant trivia or technical minutiae into the main article body that should be put into footnotes instead (if only because when such information gets removed entirely it will inevitably be restored by insistent pedants). Being outside of the narrative flow and thus harder to read is the entire point of footnotes, and is beneficial whenever the content of the note would be distracting to the main point and flow of the article. –jacobolus (t) 16:56, 18 January 2025 (UTC)
- That all makes sense; thanks for indulging my curiosity. The main reason I think it's more maintainable is because I'm kind of an organization freak and I find it easier to work with material when it's all partitioned off into sections. Of course, it's just a matter of personal preference and I'm also willing to abide by consensus. /home/gracen/ (they/them) 14:39, 18 January 2025 (UTC)