778 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-2
votes
1
answer
236
views
Solve a 2 equations systems of quadratic equations with 2 unknows [closed]
I would like to solve this system of equation for X and Y :
Do you know if their exist a mathematical solution to this system ? And how to solve it ? Or a numerical solution ?
If yes, do you think ...
1
vote
2
answers
123
views
Using SymPy to find equation system solutions in specified variables valid for all values of remaining variables
Is there a standard way to implement sympy.solve to solve a system of equations with respect to a specified subset of free symbols (i.e. sympy.core.symbol.Symbol instances), such that it only finds ...
0
votes
0
answers
53
views
The plots appear weird after 200+ timesteps
I am trying to simulate grain boundary properties in a ferroelectric bicrystal using FiPy.
I have basically three variables to solve namely, degree of crystalinity (eta), polarization magnitude in the ...
0
votes
2
answers
86
views
Fluid Mechanic Python Solve 4 equations 4 unknown variable
I am solving a fluid mechanic problem where the flow rate is to be determined.
I have the following sets of 4 eqs with 4 unknown variables (v, dot_v, Re,f):
v = dot_v / 0.0113
Re = v* 0.12 / 1.10**-6
...
0
votes
1
answer
79
views
Why Do Two Similar Code Snippets Yield Different Results for Symbolic Equations?
I am calculating (what seems to me) the same thing in two ways but am getting different results. I'd appreciate any help in understanding the reason behind this.
I have a list of symbolic equations, ...
1
vote
2
answers
152
views
How to solve for unknown theta angle
So I am trying to write a script that solves for an unknown angle.
The equation will be of the form of:
P*sin(theta)+Q*cos(theta)=G
Where P, Q, and G are known values and theta needs to be found. I ...
1
vote
0
answers
74
views
Solution to v - discrepencies between sympy and mathematica
I wrote a program:
import sympy as sp
# Define symbols
l, alpha, x, gamma, r, theta, beta, v = sp.symbols('l alpha x gamma r theta beta v')
c = 2.99792458 * 10**8
# Define the equation
lhs = l * sp....
2
votes
1
answer
115
views
Why might sympy.solve succeed with respect to fewer variables but fail w.r.t. more variables?
This question concerns surprising behavior from the sympy.solve function applied to systems of equations. The behavior seems almost like a bug, or at least an edge case for which the sympy.solve ...
2
votes
3
answers
213
views
C# equation solver [closed]
I have the following equation
var x = 1.0175d;
var spread = 0.0525d;
var duration = 6.36019306689938d;
var result = spread - (x / 100 - 1) / duration;
// result = 0.208128137
however I'm struggling ...
0
votes
1
answer
107
views
Solve a Vector Polynomial Equation
So I am trying to symbolically solve a polynomial equation in mathematica that is described with vectors:
A = {Subscript[a, 0], Subscript[a, 1], Subscript[a, 2]}
B = {Subscript[b, 0], Subscript[b, 1], ...
3
votes
2
answers
234
views
How to solve complex equations numerically in Python?
Originally, I had the following equation:
2mg×ばつsin(\alpha) = Cd×ばつ\rho(v^2 + v_{wind}^2 + 2vv_{wind}cos(\phi))^(3/2)
which I could express as the following non-linear equation:
(K ×ばつ v)^(2/3) = v^2 + v_{...
0
votes
1
answer
181
views
Solving linear system of equations with constraints on unknowns
I would like to solve a system of linear equations y=Uh for an unknown vector h, where I have a few constraints on some of the elements of $h$. The matrix U is composed of a vector u (length N) and a ...
2
votes
1
answer
263
views
How to increase the precision of scipy.optimize.fsolve function
I want to model PCR reactions, so I have a bunch of algebraic non-linear equations that I and solving using the fsolve function. But after 23 cycles the float overflows and the results come out ...
0
votes
0
answers
67
views
Sympy symbol is set real='True' but giving complex solution
Upon solving equation using sympy, the real variable is giving complex solution. I don't understand what I am doing wrong.
One more thing, when solving for sig (which is sig1+sp.I*sig2), the solution ...
4
votes
1
answer
83
views
Problems to solve non-linear coupled dgl in python (numerical)
I have the following problem. I would like to solve the following DGL system numerically in python:
$$
\begin{align*}
&g'' + \frac{2}{r} g' - \frac{2}{r^2} g - \frac{3}{r} e g^2 - e^2 g^3 - \frac{...