You are on page 1of 1

220 cos(2*pi*f*t+90)

220 = voltaje en chile


F = frecuencia ( chile = 50hz)
t = tiempo
90 = grados
omega = (2*pi*f)
formula = v * cos(omega*t+grados)

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int v;
System.out.println("Ingrese voltaje : ");
v = sc.nextInt();
int f;
System.out.println("Ingrese Frecuencia : ");
f = sc.nextInt();
int g;
System.out.println("Ingrese grados : ");
g = sc.nextInt();
double omega = (2*Math.PI*f);
double funcion = (omega*t+g);
System.out.println(Math.cos(funcion));
}

You might also like