15,908,455 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Meroo king (Top 6 by date)
Meroo king
20-Mar-13 23:13pm
View
so what should i do?
Meroo king
20-Mar-13 22:02pm
View
yes
Meroo king
20-Mar-13 21:56pm
View
there is no vale show up
Meroo king
20-Mar-13 21:38pm
View
i have tried it by myself but dosent work !
#include <iostream>
#include <cmath>
using namespace std;
double V_Out_Funct(double X_l=2πfl, double X_c=□(1/2πfc), double w=2πf)
{
return Z=R*(X_l+X_c )j
}
int main()
{
double X_l=2πfl, X_c=□(1/2πfc), w=2πf;
//Variable Inputs
cout << "Enter the value of X_l=2πfl: ";
cin >> X_l=2πfl;
cout << "Enter the value of X_c=□(1/2πfc): ";
cin >> X_c=□(1/2πfc);
cout << "Enter the value of w=2πf: ";
cin >> w=2πf;
cout << "Enter the value of F: ";
cin >> F;
// calculate the Z
double Z=R*(X_l+X_c )j;
Z = Z_Funct(X_l=2πfl, X_c=□(1/2πfc), w=2πf);
cout << "Z:" << Z;
return 0;
}
Meroo king
20-Mar-13 21:18pm
View
Deleted
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
// Variable Declerations
double a, b, c;
//Variable Inputs
cout << "Enter the value of a: ";
cin >> a;
cout << "Enter the value of b: ";
cin >> b;
cout << "Enter the value of c: ";
cin >> c;
//Computations
double discriminant = (pow(b,2) - 4*a*c);
double positive_root = (((-b) + sqrt(discriminant))/(2*a));
double negative_root = (((-b) - sqrt(discriminant))/(2*a));
//Output
if (discriminant == 0)
{
cout << "\n\nThe discriminant is ";
cout << discriminant << endl;
cout << "The equation has a single root.\n\n";
}
else if (discriminant < 0)
{
cout << "\n\nThe discriminant is ";
cout << discriminant << endl;
cout << "The equation has two complex roots.\n\n";
}
else
{
cout << "\n\nThe discriminant is ";
cout << discriminant << endl;
cout << "The equation has two real roots.\n\n";
}
//Final Root Values
cout << "The roots of the quadratic equation are x = ";
cout << negative_root;
cout << ", ";
cout << positive_root << endl << endl;
return 0;
}
i have wrote this with different formule but cant do something applying to my subject which is electronic
Meroo king
19-Mar-13 17:33pm
View
its not homework if you would like help its ok or f*** off
Show More