Questions tagged [equation-solving]
763 questions
0
votes
2 answers
Solving matrix equation A B = C. with B(n* 1) and C(n *1)
I am trying to solve a matrix equation such as A.B = C. The A is the unknown matrix and i must find it.
I have B(n*1) and C(n*1), so A must be n*n.
I used the BT* A.T =C.T method (numpy.linalg.solve(B.T, C.T)).
But it produces an…

Rabih Assaf
- 95
- 1
- 1
- 8
0
votes
1 answer
How Can solve a n order Differential Equations
How can I solve the following equation? what is the h(z)
(z^n+1).|h'(z)|^n=const
Is it possible to use MATLAB?

Mohammad Ali Nematollahi
- 321
- 1
- 4
- 13
0
votes
1 answer
Obtain only a single solution for System of Polynomials in Sage
I am trying to solve a system of polynomial equations obtained by comparing coefficients of different polynomials.
# Statement of Problem:
# We are attempting to find complex numbers a, b, c, d, e, J, u, v, r, s where
# ((a*x + c)^2)*(x^3 + (3K)*x +…

Ivan G.
- 3
- 1
0
votes
1 answer
What is the best method of solving a large system of constrained linear and non linear equations in matlab?
Solving system of constrained linear and non-linear equations in MATLAB
I'm solving a FEM problem in MATLAB with use of the direct stiffness method. The problem is now formulated as a system of non linear equations:
KU=F or CF=U with C =…

JPlanken
- 55
- 1
- 9
0
votes
2 answers
Solving equations with more unknowns than equations
I am trying to find the unknowns of several equations but there are more unknowns than the number of equations. The code is something like this:
syms x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17
eqn1 = 0.04*x1 + 0.04*x2 + 0.2*x3 +…

TYL
- 1,577
- 20
- 33
0
votes
1 answer
Linear programming maximization code in MATLAB
How to solve the linear programming maximization problem that contains both <= and >= equations?
For example here's a case:
Maximize:
z = c1x1 + c2x2 + c3x3
Subject to:
a1x1 + a2x2 + a3x3 <= b1
a4x1 + a5x2 + a6x3 <= b2
x1 >= d1
x2 >= d2
x3 >=…

Tiash
- 109
- 3
- 14
0
votes
2 answers
Set derivatives of a function to 0 in Python
I am trying to simultaneously solve a system of equations. The equations themselves are found by calculating the gradient of a function with some variables. I am using sympy and here is the code:
from sympy import *
m = Matrix(symbols('a b c',…

user1434997
- 1,689
- 2
- 12
- 12
0
votes
0 answers
Solving linera equation AX=B in matlab
I have to solve following linear equation in Matlab
AX=B for X, where A - symetric positive definite upper triangular matrix (nxn), and B is matrix (mxn).
So far I have got code for solving such eqation where B is a vector. I have to change the…

hegendroffer
- 123
- 1
- 13
0
votes
1 answer
how to solve simultaneous equations with solve and with result without roots
Here is the code:
syms G1 G2 G3 M1 M2 M3 P1 P2 P3 D1 D2 D3
S = solve(0 == 0.9 * (20 - G1) - 0.012 * D3 * G1, ...
0 == 0.9 * (20 - G2) - 0.012 * D1 * G2, ...
0 == 0.9 * (20 - G3) - 0.012 * D2 * G3, ...
0 == -0.0033 * M1 + 0.002 *…

uNxe
- 33
- 4
0
votes
0 answers
Solving symbolic system of equations in Matlab using the solve() function
I know there have been very similar questions to this on this forum and I have already gone through them and unfortunately I am not yet convinced of the result that I have achieved.
I am trying to solve a system of three simultaneous equations, but…

Jamy codes
- 101
- 2
- 8
0
votes
3 answers
how to find all integer solutions to sum(xi) =b, with linear constraints
Suppose sum(xi) = 10, 0<= xi <= 2, i = 1, 2, ..., 10. How to find all integer solutions for xi. thank you. I have read about Euclidean algorithm, but it looks like just for two unknown variables. What algorithms can be used here.

daydayup
- 2,049
- 5
- 22
- 47
0
votes
0 answers
Scipy - Solving Systems of Non-linear Equations Containing CDF
I have the following system of equations (simplified version).
y = x*scipy.special.gdtr(a, b, f(x,y))
x = y*scipy.speical.gdtr(c, d, f(x,y))
Here scipy.special.gdtr refers to the CDF of gamma distribution, and a, b are the corresponding two…

P.Tao
- 1
- 1
0
votes
1 answer
How to use pcg with a function in MATLAB
I am going to solve an inverse problem, AX=b, using conjugate gradient method in MATLAB. I want to use pcg function in MATLAB and as I know instead of matrix A I can use a function.
I have a function for example afun which has some entries. In the…

user2983136
- 17
- 7
0
votes
1 answer
MATLAB solve() returns array for linear equation
I have the following equation in MATLAB:
eqn1 = (1-t)*x1 + t*x2 == x; where x1,y1 =
I am solving the equation as:
t1 = double(solve(subs(eqn1,x,min(x_arr(i,:))),t)); and doing a comparison as:
if(t1 >= 0 & t1 <= 1)
…

Kanishka Ganguly
- 1,252
- 4
- 18
- 38
0
votes
0 answers
Interpretation of these root objects
I have solved this system of equations (see below) in Mathematica for real x where the coefficients of the equations are functions of real parameters a,b and c. Mathematica then displays real solutions x with constraints on a,b and c.
The…

Cavents
- 135
- 6