{ case ("sin"): y = a*Math.Sin(b*t); break; case ("cos"): y = a*Math.Cos(b*t); break; case ("tan"): y = a*Math.Tan(b*t); break; case ("cotan"): y = a/Math.Tan(b*t); break; case ("ln"): y = a*Math.Log(b*t); break; case ("tanh"): y = a*Math.Tanh(b*t); break; default: y=1; break; }//switch Console.WriteLine ("t = " + t + "; " + a +"*" + NameFunction +"(" + b + "*t)= " + y + ";"); }//for double u = 2.5, v = 1.5, p,w; p= Math.Pow(u,v); w = Math.IEEERemainder(u,v); Console.WriteLine ("u = " + u + "; v= " + v + |