407180: GYM102697 151 Triangle Trigonometry
Description
For this problem, you will be asked to solve specified trigonometry problems. You will be given individual problems that contain sin,cosine,tangent,cosecant,secant, and cotangent. Each test case will specify which operation should be used, using the following keywords: "sin,cos,tan,cosec,sec,cotan". Each test case will also provide the value that should be input into the various trigonometry functions. Your program should output the result of each computation.
InputThe first line contains a keyword of the format "sin,cos,tan,cosec,sec,cotan" that signifies which operation should be computed. The second line contains a floating point value that acts as the input to the trigonometry equation.
OutputA single floating point value that represents the computation of the input with the given trigonometry equation.
ExampleInputsin 2Output
0.9092974268256817