By the condition, after entering a, the calculation is made using these two formulas, the answer must match. Where did I make a mistake? Answers do not match.
double a = Convert.ToInt32(textBox3.Text); double z = 1 - (1 / 4) * Math.Pow(Math.Sin(2 * a),2) + Math.Cos(2 * a); double z1 = Math.Pow(Math.Cos(a),2) + Math.Pow(Math.Cos(a), 4); textBox1.Text = Convert.ToString(z); textBox2.Text = Convert.ToString(z1); 
(1 - (1 / (double)4).....because the integer division of 1 by 4 will be 0, not 0.25 - Alexey Shimanskydouble a = Convert.ToInt32(...);. Are you sureamust be an integer? - Dmitry D.