Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TEC.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <math.h>
- #include <conio.h>
- using namespace std;
- void main()
- {
- int f1=20;
- int f2=22;
- double U=4;
- double r=29.2;
- double L=250.4E-3;
- double C=223.9E-6;
- double p=0.25;
- double w;
- double I;
- double Uc;
- double Ul;
- cout<<"-----I------"<<endl;
- for (double i=f1; i<=f2; i+=p)
- {
- w=2*3.14*i;
- I = U/(sqrt(r*r+pow((w*L-1/(w*C)),2)));
- cout<<I<<endl;
- }
- cout<<"-----Uc-----"<<endl;
- for (int i=f1; i<=f2; i+=p)
- {
- w=2*3.14*i;
- Uc = U/(w*C*sqrt(r*r+pow((w*L-1/(w*C)),2)));
- cout<<Uc<<endl;
- }
- cout<<"-----Ul-----"<<endl;
- for (int i=f1; i<=f2; i+=p)
- {
- w=2*3.14*i;
- Ul = (w*L*U)/(sqrt(r*r+pow((w*L-1/(w*C)),2)));
- cout<<Ul<<endl;
- }
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement