2010/07/05
2010/05/22
region elimination methods
Exercise 1: Use region elimination methods to estimate the two minima and one maximum of the function
f(x)=10x^6 -72x^5 +165x^4 -120x^3 +72
with the estimation error less than 0.01,where x is defined the real line.
f(x)=10x^6 -72x^5 +165x^4 -120x^3 +72
with the estimation error less than 0.01,where x is defined the real line.
2010/05/10
2010/05/05
2010/05/03
2010/04/24
2010/04/22
如何輸入多個參數?
如果今天要實現下面的主程式,
static void Main(string[] args)
{
int a = 3;
int b = 4;
int c = 5;
int sum = 0;
sum = Add(a, b);
Console.WriteLine("總和 = " + sum);
sum = Add(a, b, c);
Console.WriteLine("總和 = " + sum);
}
其中 Add(a,b) Add(a,b,c)
怎麼是同一個方法,但是傳入的數值數量卻不同?
static void Main(string[] args)
{
int a = 3;
int b = 4;
int c = 5;
int sum = 0;
sum = Add(a, b);
Console.WriteLine("總和 = " + sum);
sum = Add(a, b, c);
Console.WriteLine("總和 = " + sum);
}
其中 Add(a,b) Add(a,b,c)
怎麼是同一個方法,但是傳入的數值數量卻不同?
訂閱:
文章 (Atom)