Questions tagged [equation-solving]
763 questions
0
votes
2 answers
How to find the turning points of a polynomial equation on Matlab?
I have a function which is f=x^4-8x^3+24^2-32x.
I need to find the turning points (i.e. the maximum or minimum of the curve) using the inbuilt command 'fsolve'.
Now, I know that the turning point is x=2 because I worked it out manually by finding…
0
votes
1 answer
Can you please tell me how to solve four transcendental equations of four unknowns?
I have tried solving 4 equations of 4 unknowns in MATLAB and Mathematica.
I used vpasolve for finding the unknowns in MATLAB. Here is the MATLAB code.
Y1 = 0.02;
l1 = 0.0172;
syms Y2 Y3 l2 l3;
lambda = [0.0713 0.0688 0.0665];
b1 = 0.1170;
b3 =…

sunanda
- 13
- 3
0
votes
1 answer
Solving implicit equation in python using f solve
I want to write a program to ask for the values of Q,y,b,x,S0 then find the value of n from the following image
I used f solve to write this code:
from scipy.optimize import fsolve
def…

Etemon
- 53
- 2
- 11
0
votes
0 answers
Implementing Laguerre's root finding method
I'm trying to implement robust / stable Laguerre's method. My code works for most of polynomials but for few it "fails". Respectively I don't know how to properly handle "corner" cases.
Following code tries to find single root (F64 - 64bit float,…

Martin Capoušek
- 3
- 3
0
votes
3 answers
VBA - Trying to get the root of a function
I got this equation to solve in VBA:
Energy = y + (0.5) ^ 2 / ( 2 * 9.81 * y ^ 2 )
but I got the Energy value and want to solve for the y value.
In R is easy: uniroot. There is something like this?

Bryan Souza
- 497
- 2
- 10
0
votes
1 answer
I don't know to do a assembly equation
I should do two projects. The first a, b, c are bytes and the second they are double type.
The equation: a-(b-c:2).
What I've managed to do (double type I think):
.model small
.stack 100h
.data
a db 0
b db 0
c db 0
result db ?
message1 db,…

Jennifer
- 1
0
votes
0 answers
How to solve system of trigonometric equations in Maxima CAS?
I want to find equation of scaled ( smaller) ellipse inscribed in another ellipse with 2 common points
I have system of 2 trigonometric equations ( eq1 and eq2) and 2 variables:
s ( it is a scaling factor of second ellipse) s = a'/a
t ( it is a…

Adam
- 1,254
- 12
- 25
0
votes
1 answer
Matlab's GlobalSearch function : error message and can't start the searching for minimum
I have a system of matricial equations where I want to find 2 matrices of 7x7 (so I am working with (1x98) vectors).
I have an issue when I want to use GlobalSearch Matlab function. Here my code :
Eq1 = (P1.')*(a.')*a*P1 + (P1.')*(a.')*b*P2 +…
user1773603
0
votes
1 answer
defining variable by solving equation when catching python
I wrote piece of code that takes an equation from the user and evaluate the right hand side and the left hand side separately to check if the equation is balanced. If there is an undefined variable it catches a NameError exception. I want to modify…

user3043108
- 965
- 1
- 8
- 10
0
votes
0 answers
Keep same symbolic name for building a system of equations with an array of symbolic variables
I have an issue about the declaration of an array of symbolic variables.
In the following code snippet, eigenv_sp is a 7x7 numerical array and x is a symbolic 7x7x2 array :
% Symbolic variables
x = sym('x', [7 7 2]);
aP1 = sym('aP1', [7 7]);
for…
user1773603
0
votes
0 answers
Matlab - Solving a system of 2 matricial equations : building each element of matrix solution
With Matlab, I have a matrix solution to find from 2 matricial equations (size matrix is 7x7). Here the 2 equations to solve with "a" and "b" are the unknow matrices and where F1, F2, P1 and P2, D, D2, D are known. Solving "a" and "b" would allow me…
user1773603
0
votes
0 answers
how to solve the following numpy equation
I know that for: a+ bx1+ cx2=0, a+ 2bx1+ cx2=8
I can solve the equation using linalg:
g = np.array([[a,b], [a,2b]])
w = np.array([0,8])
solution = np.linalg.solve(g, w)
But how can I solve the following equations using np: a+ bx1+ cx2 + dx1^2+…

Jhonathan Mizrahi
- 89
- 5
0
votes
1 answer
R - solving only solvable part of under-determined linear equation system
I am looking for a general way to find the solution (in R) to the determined parts of an under-determined linear equation system, like the following one
# Let there be an A * x = b equation system
# with three coefficients A,B,C
# where only the…

JBJ
- 866
- 9
- 21
0
votes
1 answer
Circumventing resource exhaustion errors when solving systems of equations using CX CAS
I am attempting to solve the following system of 2 equations (2 unknowns) using a Ti-Nspire CX CAS calculator:
I have already solved it using Mathematica:
Solve[v*Sqrt[1+0.5^2 + 2*0.5*Cos[2*(2*Pi/(8*10^-3))*(-3*10^-3) + p]]==2 && v*Sqrt[1+0.5^2 +…

Landon
- 528
- 2
- 4
- 22
0
votes
3 answers
Optimization problem | Solve an equation with 4 parameters having two conditions
I have this equation :
f(x) = i * ln(j * x + k)
With these two conditions : f(0) = 6 & f(1) = 12
After several hours of research, I can not find how to optimize the parameters i, j & k which respect the conditions with RStudio.
I know how to do it…

GoldenFromK
- 11
- 2