Hello, guys. I wrote the code to a Quadratic Equations Solver and I'd like for you to run the program and read the source code and give me tips on what I can improve, what is good and what is bad, suggestions, etc. . #include <iostream> #include <locale.h> #include <math.h> #include <cmath> #include <complex> #include <windows.h> #include <conio.h> #include <limits> using namespace std; float a = 0; float b = 0; float c = 0;float x1 = 0; float x2 = 0; double Delta = 0; bool repetir = false; int i = 0; int Sim_ou_Nao = 0; void Instrucoes(bool); … |
+0 forum
2 | ||

do u have any code to find a system of two linear equations with two variables?? |
+0 forum
11 | ||

Hi.. d1 = a1*x1 + b1*x2 + c1*x3 d2 = a2*x1 + b2*x2 + c2*x3 d3 = a3*x1 + b3*x2 + c3*x3 Knowing all of a,b,c,d, I have to find x1, x2, x3. As you might noticed, this is high school math. But, how do I write the code to solve this? /* /a1 b1 c1| /x1| /d1| |a2 b2 c2|*|x2|=|d2| |a3 b3 c3/ |x3/ |d3| */ double A[3][3], X[3], D[3]; X[0] = ? X[1] = ? X[2] = ? Can anyone give me an idea please? |
+0 forum
2 | ||

I am trying to solve a system of 5 equations in 5 unknowns. I am new to the Matlab language. I consulted the documentation and decided that the best way of doing this was to use the solve() function. However, this function does not appear to work properly for 5 unknowns. It is an electrical problem, and I am trying to solve for 5 currents, i1, i2, i3, i4, and i5. However, the function does not recognize v2 as a constant attempts to solve for it, neglecting i5. The code is as follows: [CODE]v2 = 1; syms i1 i2 i3 … |
+0 forum
0 | ||

Fairly new to php but know enough to be dangerous. I'm really stumped on this: I have stat numbers already in database linked with an id and also created an add stats page. So when a user is on the add stats page they enter the specific id & new stats. Questions is, once they click submit I need the new stats to add with stats already in database and show the combined stats on the page. Hope that made sense, basically adding numbers already in database with new numbers coming in. Any help would be much appreciate - thanks … |
+0 forum
10 | ||

I am making a program for my class where I handle equation problems such as: 2a-3b+5c=10 3a-2b-3c=-5 where the answer would be: 5a-5b+2c=5 This is what I have so far. It still isn't perfect cause I still haven't figured out the "=" part. I do have it performing the math though. But the answers are coming as: 5a5b5c-5a5b5c+2a2b2c. I don't understand why. Any help would be much appreciated.[code]#include <iostream> #include <iomanip> #include <cstring> using namespace std; // Declarations const int length=26; int num_var, i,j; char variable_array [length]; int equ_1 [length], equ_2 [length]; int main() { cout<< "How many variables are … |
+0 forum
3 | ||

i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program . |
+0 forum
1 |

The End.