/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Esteban
*/
public class DeberDeTablaDeFunciones {
public static void main(String args[]){
double t;
double e;
for(t=0;t<=10;t=t+0.1)
System.out.println("Sen "+t+" = " +Math.sin(t));
for(t=0;t<=10;t=t+0.1)
System.out.println("Cos "+t+" = " +Math.cos(t));
e=2.7183;
System.out.println("e = 2.7183");
for(t=0;t<=10;t=t+0.1)
System.out.println("e ^ "+t+" = " +(Math.pow(e,t)));
for(t=0;t<=10;t=t+0.1)
System.out.println("e ^ "+t+" * cos "+t+ " = " +(Math.pow(e,t))*(Math.cos(t)));
}
}
martes, 29 de septiembre de 2009
Suscribirse a:
Enviar comentarios (Atom)
for(t=0;t<=10;t=t+0.1) puedes hacer for(t=0;t<=10;t+=0.1)
ResponderEliminar