using System;class trigonometry
{
public static void Main(){
Double theta;
//Double定义theta
for(theta = 0.1; theta <= 1.0; theta = theta + 0.1)
//theta等于0.1theta小于1.0 theta等于theta0.1 累计
{
Console.WriteLine("sine of " + theta +" is "+
Math.Sin(theta));
//Math.Sin 是什么意思
Console.WriteLine("Cosine of " + theta +" is "+
Math.Cos(theta));
//Math.Cos 是什么意思
Console.WriteLine("Tangent of " + theta +" is "+
Math.Tan(theta));
//Math.Tan 是什么意思
Console.WriteLine();
}
}
}
{
public static void Main(){
Double theta;
//Double定义theta
for(theta = 0.1; theta <= 1.0; theta = theta + 0.1)
//theta等于0.1theta小于1.0 theta等于theta0.1 累计
{
Console.WriteLine("sine of " + theta +" is "+
Math.Sin(theta));
//Math.Sin 是什么意思
Console.WriteLine("Cosine of " + theta +" is "+
Math.Cos(theta));
//Math.Cos 是什么意思
Console.WriteLine("Tangent of " + theta +" is "+
Math.Tan(theta));
//Math.Tan 是什么意思
Console.WriteLine();
}
}
}
Tan:求正切
Cos:求余弦我可以回答你的问题,但请不要让我解释什么是正弦、余弦,我不是数学老师,我知道什么是正弦、余弦,但我没有能力向别人解释清楚。
Sin正弦,Cos余弦,Tan正切
你不要把分花在这种问题上,不值..
这类问题,MSDN上一查就行的哇....
sin=y/r
cos=x/r
tan=y/x = sin/cos
math有很多很函数的。