Questions tagged [equation-solving]
763 questions
0
votes
1 answer
How to solve below equations in python containing trigonometric functions
Below code is taking forever to run and is not stopping.
I guess the problem is in the last line code
from sympy import *
v_swe, alpha= symbols('v_swe alpha')
Tc=310; Th=635; r=287; M=1.5; r_t=100; W=7*1000*3600;
f=1; hours=6; stress=240e+6; sf=3;…
0
votes
1 answer
Numpy: Find the value needed in one equation which minimizes the error
the title is not clear, i hope to explain better here:
i have the two following arrays, ep and sp with the same dimension:
ep = [0.00000000e+00, 4.29973987e-05, 1.77977219e-04, 3.08940223e-04, 4.44883670e-04, 5.84806153e-04, 7.28705999e-04,…

MatFer
- 3
- 4
0
votes
0 answers
Plotting an equation of two variables in mathematica
I am trying to plot the following equation with c on y-axis and n on x-axis for L~10^-61 and 'c~10^-61` (if required I can scale both of them down to manageable values):
-0.00003 = Binomial[n,2]*((1.37832*10^-7 Cos[(2 Sqrt[3] w ArcSinh[(c L)/(2…

Nitin
- 123
- 6
0
votes
1 answer
Boundary Value Problem with Array as Coefficient
First I am solving a boundary value problem, then I am reusing these results to solve another set of boundary value problems. However that means one of my coefficients in the second set of boundary value problems is an array that mismatches the…

Patrick Lewis
- 83
- 1
- 1
- 10
0
votes
0 answers
Octave int too large
I'm using octave symbolic and I try doing some equation solving but when i try to make a matrix of my equations for solve function i get this error
error: Python exception: OverflowError: Python int too large to convert to C long
occurred at…

skyMark
- 1
- 2
0
votes
1 answer
bvp4c Matlab : Too many input arguments error
I need to solve two differential equations of the first order, with one unknown parameter in each equation (m_0 and m1 are unknown parameters), and I have four boundary conditions. My function for guessing solution is pinit:
function pinit =…

iviviviviv
- 21
- 8
0
votes
1 answer
Python, solve non-linear equation for a variable
Using Python and SymPy I am trying to solve this equation for b:
My code:
From sympy import *
b = Symbol('b')
x = ((b/(2*math.pi*math.e))*((math.pi*b)**(1/b)))**(1/(2*(b-1)))
solve(x-1.0034,b)
And I get this error: NotImplementedError: multiple…

gorte
- 23
- 1
- 6
0
votes
1 answer
How to solve two equations with bvp4c Matlab?
I need to solve two differential equations, where I have two boundary conditions for every equation. Because of that I choose Matlab method bvp4c to solve this system:
p1' = -32 * beta * m1 / (R ^ 4 * p1)
p2' = - ( - 8 * p1' / R - p1' * p2 - 32 *…

iviviviviv
- 21
- 8
0
votes
1 answer
MAth Equation not working properly
I have been working on a math equation for 2 days. The whole process is supposed to take the information from a driver and the return the final average. However, for some reason it is not processing correctly. Any ideas would be much appreciated.…

mrroberts
- 13
- 2
0
votes
0 answers
How to solve system of non-linear equations?
I am trying to solve a system of non-linear equations as follows in Python:
A-B*x1^4+C(x2-x1)+C+D=0
E(x1-x2)+F(x3-x2)+G(x3^4-x2^4)+I=0
J(x2-x3)+K(x4-x3)+L(x3^4-x2^4)+M=0
N-P*x4^4+Q(x3-x4)+R+S=0
where x1,x2,x3,x4 are the 4 unknowns and A, B, C,....,…

Debayan Paul
- 95
- 2
- 9
0
votes
1 answer
Sympy solveset store results as float, integer etc
I am solving cumulative probability functions (or equations in general if you want to think about it this way) with sympy solveset. So far so good. They return however "sets" as a type of result output. I am having troubles converting those to or…

yomath
- 23
- 7
0
votes
1 answer
I want to get a distinct list of values for three variables that add up to 1 in increments of 0.05
What I want is to find a distinct list of decimals that add to 1 given that I'm using three variables and each variable can increase by 0.05.
The table of values would look something like this:
Var1 Var2 Var3 Total
0.0 0.05 0.95 1
…

resonance
- 1
- 4
0
votes
1 answer
Solve system of differential equation with embedded non diferential equations, using Octave/Matlab (see picture)
I have the following equation system (click to see picture)
, and would like to solve for X(t), Y(t), Z(t), hopefully using Octave/Matlab, which I'm familiar with, but I would not mind solving it by any other means necessary.
Now, Fsolve is useful…
0
votes
0 answers
Solve non-linear equation numerically on MATLAB
I have to solve this equation
(tan(qh))/(tan(ph))=-(4k^2 pq)/(q^2-k^2)^2
here
d = 6.35;
h = d/2;
ct = 3076.4;
cl = 6207.7;
I want to give k values and each k value I get many omega (w) values. Just like sin(x)=0 means x values are nπ
I tried in…

Raza Mehdi
- 35
- 7
0
votes
0 answers
A non-linear system of equations on MATLAB
I have been looking around and cannot find any solution to this problem. I have 10 variables and 9 (non-linear) equations. I want to solve for every other variable in terms of x (which is one of the 10 variables). Any ideas as to how to do this?
By…

user8253417
- 123
- 4