Questions tagged [equation-solving]
763 questions
1
vote
1 answer
How to find out whether the equations have solutions effectively?
I want to know whether equation set has a solution, and I use solve(f)!=[] (python sympy) to achieve it. But I only need to know that whether there is a solution so I do not need to find all the solutions which will consume a lot of time. Is…

xcl
- 21
- 2
1
vote
2 answers
Math game issues with randomly generated numbers for equations
Hello My fellow coders im not sure how to address making a multiple choice game with randomly generated math equations.
My current coding is not returning any answers or numbers even inside the console. Please help me out without telling me exactly…

lukes jaafari
- 17
- 6
1
vote
2 answers
Check if three points are coo linear or not
I have got a problem to check if three points form a triangle or not. If it forms a triangle the program should print the square of maximum length of the three sides of the triangle. If not the program will print "Coolinear". Anyways here is a…

Michael J. Harris
- 33
- 1
- 1
- 5
1
vote
3 answers
Swift: Multiplication and brackets calculation doesn't work
This is a example equation which I want to be solved:
let equation = (5-2) * (10-5) / (4-2) * (10-5)
print (equation)
//35
The result which is printed is 35. But the right result would be 1,5. Whats wrong?

E. Tess
- 17
- 2
1
vote
1 answer
matlab how to solve sum function
i have to solve the following formulation in matlab:
i am looking for the beta value, given is a vector full of wavelet coefficients x =(x_1,..,x_L)! How to solve this function in matlab? Can i use fzero?
edit: at the moment i tried this:
syms…

Ben
- 115
- 1
- 2
- 10
1
vote
1 answer
generating and executing all possible math equations
Given that I have 3 doubles:
double a = 1.0;
double b = 2.0;
double c = 3.0;
How do I generate all possible math equations using following operations:
+
*
^2
sqrt()
parenthesis ()
The examples are:
1 + 2 + 3;
1 + 2 * 3;
(1 + 2) * 3;
1^2 * 2 *…

Alex
- 4,607
- 9
- 61
- 99
1
vote
0 answers
Iteration using Mathematica
I need a way to implement iteration process in Mathematica of the form:
N is constant, S is also constant.

Theorist
- 9
- 2
1
vote
0 answers
'solve' syntax in MATLAB for symbolic nonlinear matrix equation
I have a symbolic matrix that depends on a complex parameter q. Let the matrix be A(q) and b a column vector. I would like to simultaneously solve the equations
A*b==0; b'*b==1;
using the solve command (preferably the numerical variant vpasolve).…

Wolpertinger
- 1,169
- 2
- 13
- 30
1
vote
0 answers
Equation solving in terms of a parameter in R
I have the following equation I'd need to solve for η:
where the parameter θ is unknown (the general problem is to estimate it), and the vector h depends on that parameter, and a vector of known values y.
What ideally I would like to get is the…

Ayeron
- 11
- 3
1
vote
0 answers
Solving a single, long linear equation in R - many unknown variables
I have a single twelve-term equation for different classes of disease prevalence (nx) that looks like this:
y = f*b0*n0 + f*b1*n1 + f*b2*n2 + ... + f*b12*n12
I also have an equality constraint, such that
n0 + n1 + n2 + ... + n12 = 1 ## prevalence…

Francesco Checchi
- 11
- 1
1
vote
1 answer
Plot solution of second order equation in MATLAB
Could you please help me with the following question:
I want to solve a second order equation with two unknowns and use the results to plot an ellipse.
Here is my function:
fun = @(x) [x(1) x(2)]*V*[x(1) x(2)]'-c
V is 2x2 symmetric matrix, c is a…

Astrid
- 43
- 1
- 2
- 7
1
vote
3 answers
Solving Polynomial equation using javascript
I have a polynomial equation which needs to be solved programmatically. The equation is as below.
x/207000 + (x/1349)^(1/0.282) = (260)^2/(207000*x)
I need to solve for x. I am using javascript for this. Is there any library in javascript which can…

Amr
- 81
- 3
- 15
1
vote
1 answer
Solving two non-linear equations in Octave
I am trying to solve the following two equations using Octave:
eqn1 = (wp/Cwc)^(2*N) - (1/10^(0.1*Ap))-1 == 0;
eqn2 = (ws/Cwc)^(2*N) - (1/10^(0.1*As))-1 == 0;
I used the following code:
syms Cwc N
eqn1 = (wp/Cwc)^(2*N) - (1/10^(0.1*Ap))-1 ==…

Siladittya
- 1,156
- 2
- 13
- 41
1
vote
2 answers
From Solve to Fsolve
I have three equations in three unknowns that I would like to solve.
I am specifying the equations with symbolic toolbox. I know I can use solve function to ask matlab to find me a numeric solution. However, with 3 equations in 3 unknowns, matlab…

phdstudent
- 1,060
- 20
- 41
1
vote
1 answer
How to connect user input to calculation java
I'm a BEGINNER in java. My project is a simple calorie counter.
The way it should work:
Enter calorie intake number: (user adds number)
program subtract users input by 2,000 calories
As of now, my program is subtracting the parameter for the food…

quasar-light
- 43
- 1
- 10