Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

For a certain electrical circuit with an distance L and resistance R, the damped natural frequency is given by Frequency = sqrt((1/L*C)

Posted By: Rald Fischer     Category: C Programming     Views: 2845

For a certain electrical circuit with an industance L and resistance R, the damped natural frequency is given by Frequency = sqrt((1/L*C)-(R*R)/(4*C*C))

It is desired to study the variation of this frequency with C(capacitance). Write aprogram to calculate the frequency for different values of C starting from 0.01 to 0.1 in steps of 0.01.

Code for For a certain electrical circuit with an distance L and resistance R, the damped natural frequency is given by Frequency = sqrt((1/L*C) in C Programming

#include <stdio.h>
#include <conio.h>
#include <math.h>

void main()
{
    float L,R,C,frequency;
    clrscr();

    printf("\nEnter industance L:");
    scanf("%f",&L);

    printf("\nEnter resistance R:");
    scanf("%f",&R);

    printf("\nEnter capacitance C:");
    scanf("%f",&C);

    for(C=0.01;C<=0.1;C+=0.01)
    {
        frequency=sqrt((1/(L*C))-((R*R)/(4*C*C)));
        printf("\nFrequency is:%f",frequency);
        printf("\n");
    }
    getch();
}
  
Share: 



Rald Fischer
Rald Fischer author of For a certain electrical circuit with an distance L and resistance R, the damped natural frequency is given by Frequency = sqrt((1/L*C) is from Frankfurt, Germany.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!