Questions tagged [equation-solving]
763 questions
0
votes
1 answer
Solve system of polynomial equations
I have a system consisting of 2 polynomials, in 2 variables, with complex coefficients.
The general case consists of a finite number of pairs of complex numbers.
NSolve[{poly1==0,poly2==0},{x,y}]
in Mathematica works for lower degree polynomials,…

Per Alexandersson
- 2,443
- 1
- 22
- 28
0
votes
0 answers
Trying to solve 2D truss structure, error: Warning: Solution does not exist because the system is inconsistent
Trying to make a systems of equations to solve the internal forces of a truss in the x and y plane, and get the error that my system is inconsistent. I have double checked multiple times and I'm not quite sure what I'm missing, any tips?
Here is…
0
votes
1 answer
SymPy cannot rearrange results while solving a system of equations about Stackelberg game
Function f (assume n=3 for simplicity):
There are 3 symbols related to entities, corresponding to x[j](j=1,2,3) respectively. R and c is other symbols, which can be treated like constant for now. I try to diff f w.r.t x[j], and solve the results…

vio1etus
- 21
- 1
- 6
0
votes
0 answers
I want to creat a matrix in a loop that adds the new data each time to the same matrix
my code is this
`
x0=input('Enter first guess (Must be grater than 0): ');
e=input('Enter the desired telorance : ');
n=input(['Enter the desired number of ' ...
'Iteration (Must be grater than 0): ']);
for…

ek9
- 3
- 3
0
votes
0 answers
Trying to solve for 2 unknown iron source fractions given a vector of samples and a known relationship (marine chemistry exercise)
Looking for help with the class exercise that I am currently stuck on:
Iron isotopes.
The measured δ56Fe for dissolved Fe in the Atlantic Ocean is found in the supplementary data file found here . Assume the following endmember δ56Fe for these main…

j-asano
- 35
- 4
0
votes
0 answers
Can I obtain all of the solutions to system of equations in GAMS?
I have a system of non-linear equations, which may or may not have a unique solution. The default GAMS mixed complementary problem (MCP) solver returns one solution to this system (when it exists).
For example, the system
x-y=0
x-y2=0
has two…

Chris
- 1
- 1
0
votes
1 answer
What is the right approach to solve a differential equation at every timestep?
Does any equation solver work for a timestep case?
I've been implementing ODEint, Solve_ivp and even sympy to solve a first order diff.eq like this :
dTsdt = Ts* A - B + C # Set up in a function. This is sort the mathematical model.
where A,B,C…

Mauricio Mejia
- 1
- 2
0
votes
0 answers
Algorithm to find positive real solutions to quartic equations?
I am using these algorithms on a microcontroller:
float32_t cubic(float32_t b,float32_t c,float32_t d)
{
float32_t p=c-b*b/3.0f;
float32_t q=2.0f*b*b*b/27.0f-b*c/3.0f+d;
if(fabsf(p)==0.0f) return powf(q,1.0f/3.0f);
…

luistope
- 1
- 2
0
votes
1 answer
Hello I am new to sympy and I am trying to solve a couple of non-linear equation
here is the problem:
constants:
enter image description here
dependent value functions:
def v_ego(self,ego_vel_x,ego_a_ini_x,t):
v_ego = ego_vel_x + ego_a_ini_x * t
return v_ego
def x_obj(self,x_obj_ini,obj_vel_x,obj_a_ini_x,t):
x_obj =…

sherry12555
- 1
- 1
0
votes
1 answer
Implementing equations in R
I am new to R (also not too good at math) and I am trying to calculate this equation in R with some difficulties:
X is some integer data I have, with 550 samples.
Any help is appreciated since I am unsure how to do this. I think I have to use a for…

htu.98
- 1
- 1
0
votes
1 answer
Is there any method/solver in python to solve embedded derivatives in a ODE equation?
I've got this equation from mathematical model to know the thermal behavior of a battery.
dTsdt = Ts * a+ Ta * b + dTadt * c + d
However, i can't get to solve it due to the nested derivatives.
I need to solve the equation for Ts and Ta.
I tried to…

Mauricio Mejia
- 1
- 2
0
votes
0 answers
Two equals ellipses contact rotation about centers
Let the distance between the centers of two identical ellipses with semi-axes $a, b$ be $a+b$.
The first ellipse rotates around its center with a constant angular velocity $w$.
The second ellipse rotates so that it is in contact with the first…

Yu Ka
- 1
- 1
0
votes
1 answer
Solving 3 linear equations based on DataFrame - unclear error code
I have the following dataframe:
station xf yf ... yp xm ym
1 0.386532 0.269953 ... -0.427596 0.501989 0.545583
2 0.329727 0.240086 ... -0.350937 0.556123 0.539533
3 0.560896 …

Cec35
- 23
- 4
0
votes
0 answers
Write transit time equation in python code
I'm trying to write down the equation above in python code, already using math library to calculate cos.
I tried the following code, but it gave me the error: "TypeError: 'float' object is not callable"
def tempo_transito(periodo, raio_estrela,…

Matheus
- 1
0
votes
1 answer
Calculating a variable in an equation to get multiple values
I'm a python beginner and I'm trying to solve a equation. Here is the equation, which I am trying to solve for v:
**fSw - ((1)/(1+(Kro*Meu_w)/(Krw*Meu_nw))) = 0**
What I would like to do is set a single Meu_w and Meu_nw value and solve for a range…