text: Calculate ratio of area of a triangle inscribed in an Ellipse and the triangle formed by corresponding points on auxiliary circle | Function to calculate ratio of a triangle inscribed in an ellipse to the triangle on the auxiliary circle ; Stores the ratio of the semi - major to semi - minor axes ; Print the ratio ; Driver Code
code: function triangleArea ( a , b ) { ratio = b / a document . write ( ratio ) } var a = 1 var b = 2 triangleArea ( a , b )