/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Madelaine
*/
public class Valor {
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)));
}
}
Suscribirse a:
Enviar comentarios (Atom)
for(t=0;t<=10;t=t+0.1) muy bien el codigo pero podias poner for(t=0;t<=10;t+=0.1)
ResponderEliminar