Driver code
public static void main ( String [ ] args ) { binomial ( ) ; double cosTheta = 0.5 ; int n = 10 ; System . out . println ( String . format ( " % .5f " , findCosnTheta ( cosTheta , n ) ) ) ; } }