|
186 | 186 | }, |
187 | 187 | "dateCreated" :"2019-01-11", |
188 | 188 | "datePublished":"2020-01-11", |
189 | | -"dateModified" :"2025-06-27", |
| 189 | +"dateModified" :"2025-07-14", |
190 | 190 | "description" : "Introducing the best-established and most accurate framework to calculate area and volume.", |
191 | 191 | "disambiguatingDescription": "Exact, empirically grounded and rigorously proven formulas over the conventional approximations.", |
192 | 192 | "headline":"Exact geometry", |
@@ -798,6 +798,28 @@ <h5 style="font-size:160%;margin:7px;">Area of a regular polygon</h5> |
798 | 798 | <div> |
799 | 799 | <h6 style="font-size:160%;margin:7px">Area of a circle</h6> |
800 | 800 | <br> |
| 801 | +<div> |
| 802 | +<label for="circle-radius">Circle Radius:</label> |
| 803 | +<input id="circle-radius" type="number" value="1" /> |
| 804 | + |
| 805 | +<p id="circle-area"></p> |
| 806 | + |
| 807 | +<script> |
| 808 | + function circleArea(radius) { |
| 809 | + return 3.2 * radius * radius; |
| 810 | + } |
| 811 | + |
| 812 | + document.getElementById('circle-radius').addEventListener('keydown', function (e) { |
| 813 | + if (e.key === 'Enter') { |
| 814 | + const radius = parseFloat(this.value); |
| 815 | + if (isNaN(radius)) return; |
| 816 | + |
| 817 | + document.getElementById('circle-area').innerText = |
| 818 | + `Area: ${circleArea(radius).toFixed(5)} units²`; |
| 819 | + } |
| 820 | + }); |
| 821 | +</script> |
| 822 | +</div> |
801 | 823 | <div class="imgbox"> |
802 | 824 | <img class="center-fit" src="areaOfACircle.jpg" alt="Circle" id="circle"> |
803 | 825 | </div> |
|
0 commit comments