?? example6_6.java
字號:
import java.applet.*;
import java.awt.*;
public class Example6_6 extends Applet
{
public static double f(double x)
{double y;
y=Math.pow(x,10);
return y; }
public static double GaussChebyshev(int n)
{double x,s;int i;
s=0;x=Math.PI/2/n;
for(i=1;i<=n;i++)
{s+=Math.PI/n*f(Math.cos(x));x+=Math.PI/n;}
return s;
}
public void paint(Graphics g)
{double y;
int n;
for(n=1;n<=6;n++)
{y=GaussChebyshev(n);
g.drawString("I"+n+"="+y,10,20*n);
}
}}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -