package prj10_1;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class MIDLet1 extends MIDlet {
public MIDLet1() {
// TODO Auto-generated constructor stub
}
protected void startApp() throws MIDletStateChangeException {
System.out.println("自然对数e:"+Math.E);
System.out.println(" 圆周率pi:"+Math.PI);
System.out.println("绝对值:"+Math.abs(-12.4));
System.out.println("不小于该数的最小整数:"+Math.ceil(-2.2));
System.out.println("不大于该数的最大整数:"+Math.floor(-2.2));
System.out.println("两个数字中较大的数:"+Math.max(1.3, 3.4));
System.out.println("两个数字中较小的数:"+Math.min(1.3, 3.4));
System.out.println("开方(平方根):"+Math.sqrt(9));
System.out.println("正弦:"+Math.sin(Math.PI));
System.out.println("余弦:"+Math.cos(Math.PI));
System.out.println("正切:"+Math.tan(Math.PI));
System.out.println("弧度转角度:"+Math.toDegrees(Math.PI));
System.out.println("角度转弧度:"+Math.toRadians(180));
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
}
protected void pauseApp() {
}
}