Maximize a value for a semicircle of given radius | Function to find the maximum value of F ; using the formula derived for getting the maximum value of F ; Driver code
function maximumValueOfF ( R ) { return 4 * R * R + 0.25 ; } var R = 3 ; document . write ( maximumValueOfF ( R ) ) ;