Perimeter of an Ellipse | Function to find perimeter of an ellipse . ; formula to find the Perimeter of an Ellipse . ; Display the result ; Driver code
function Perimeter ( a , b ) { var Perimeter ; Perimeter = 2 * 3.14 * Math . sqrt ( ( a * a + b * b ) / ( 2 * 1.0 ) ) ; document . write ( " " + Perimeter ) ; } var a = 3 , b = 2 ; Perimeter ( a , b ) ;