Proxy > Gmail Facebook Yahoo!

30. For a certain electrical circuit with an inductance L and resistance R, the damped natural frequency is given by




import java.io.*;
import java.lang.Math;

class frequency 
{
    publicstaticvoid main(String args[]) 
    {
       int i;
       float L,R,frequency,C;
       String str;
       try{
       BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
       System.out.print("Enter value of Inductance(L) :  ");
       System.out.flush();
       str=obj.readLine();
       L=Float.parseFloat(str);
       System.out.print("Enter value of Resistance(R) :  ");
       System.out.flush();
       str=obj.readLine();
       R=Float.parseFloat(str);   
       System.out.println("     C              Frequency");
       System.out.println("==========         ===========");
       for(C=0.01f,i=1;i<=10;i++,C=C+0.01f)
       {
            frequency=(float)(Math.sqrt((1/L*C)-((R*R)/(4*C*C))));
             System.out.println("      "+C+"              "+frequency);
        }
      }
      catch(Exception e) {}
    }
}


Responses

0 Respones to "30. For a certain electrical circuit with an inductance L and resistance R, the damped natural frequency is given by"


Send mail to your Friends.  

Expert Feed

 
Return to top of page Copyright © 2011 | My Code Logic Designed by Suneel Kumar