HP Prime: Area of a Fan-Shaped Field (Baseball Field)
|
01-11-2014, 11:04 PM
Post: #1
|
|||
|
|||
HP Prime: Area of a Fan-Shaped Field (Baseball Field)
Given, lines of various length from a single vertex. The angles between the lines are known.
FANAREA(list of lengths, list of angles in degrees) The result is a list of two elements. First element: area of the field Second element: list: length of the connecting lines Example: AT&T Park Dimensions from Clem's Blog: http://www.andrewclem.com/Baseball/ATTPark.html Angles measured with a protractor. So, realistically, my estimate of area is rough. L1:={339,382,404,399,421,365,309} L2:={30,6,9,20,9,16} FANAREA(L1,L2) returns {109337.870804, {191.1175010192, 46.6352856001, 63.1995292625, 144.030366611, 83.1849883392, 108.96879942}} Area of the field: approximately 109,337.871 Note: CHAR(10) gives a line break in a string. Code: Blog Entry: http://edspi31415.blogspot.com/2014/01/h...field.html |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)