Questions tagged [equation-solving]
763 questions
0
votes
2 answers
Find solutions of a system of equations as close as possible to the previous solutions
Currently I am using the vpasolve command to solve a system of 3 equations with 3 unknowns in it. These 3 equations are being used to model the kinematic motion of a robot manipulator, and the unknowns are either the lengths of the links of the…

Darkbound
- 3,026
- 7
- 34
- 72
0
votes
0 answers
Non homogeneous heat equation
I have this code which solves the heat equation with non homogeneous boundary conditons:
$$u_t=ku_{xx}$$ where k is the diffusion coefficient
but now I want to add a constant which makes the equation non homogeneous, like…
0
votes
1 answer
Time varying input ODE solving
I'm trying to solve a set of ODE equations using ode45. A number of my parameters are already a function of time but I keep getting errors.
function odo
dx(1,1) = (vl+vr)/2*cos(x(3));
dx(2,1) = (vl+vr)/2*sin(x(3));
dx(3,1) = obz
where obz, vr and…

mahsa
- 1
0
votes
0 answers
Solving equations programmatically
My project: I want to develop a library that would solve equations. For example: Given input "3x+5=-1" I would like the output x=6
Why? Just for fun, I am learning and am interested in this topic.
What do I already have: I have already written a…

K.Vovk
- 101
- 2
0
votes
2 answers
How to solve a linear system of a square matrix in C++ when the matrix has no LU-Decomposition?
I have been trying to develop a program to solve a system Ax=b for a square matrix A using LU-Decomposition. However, I realized that this decomposition does not always exist (one way to tell is if a row exchange operation is not required, then…

Matthew Yang
- 43
- 4
0
votes
1 answer
Haskell: How to find the number of integer solutions to equation for use in Sieve of Atkin?
I am currently trying to implement the Sieve of Atkin in Haskell
In step 3 on the Wikipedia article on the Sieve of Atkin I need to find the number of Integer solutions to multiple equations.
However my solution to the first of these equations (4x²…
0
votes
1 answer
How to solve z = (((m / k) / j) / x) for x optimizing z towards 2ˣ
So say I have these variables:
m is the amount of memory available in bits
k is a dividing factor
j is another dividing factor, kept as a separate variable instead of combining with k
x is the value we want to figure out.
z is the value we want to…

Lance
- 75,200
- 93
- 289
- 503
0
votes
2 answers
Solving a 2-Variable function to only 1 of the variable doesnt work on arrays
I have found from StackOverflow how to solve a fucntion with two variables giving the one as constant/known.
This is the part of the code:
def R(gg,a):
return a-r0*g0**(1/2)*D(gg)/gg**(1/2)
def G(r):
partial_func = functools.partial(R, a=r)
…

Billy Matlock
- 340
- 2
- 14
0
votes
1 answer
How to solve equation with rotation and translation matrices?
I working on computer vision task and have this equation:
R0*c + t0 = R1*c + t1 = Ri*c + ti = ... = Rn*c + tn ,
n is about 20 (but can be more if needs)
where each pair of R,t (rotation matrix and translation vector in 3D) is a result of…

victor1234
- 871
- 3
- 12
- 28
0
votes
1 answer
get random number of parameters that satisfy given equation in Python
I'm new to Python and I would like to get 1000 of parameters that satisfy a given equation.
More precisely, below is the equation of the sphere, assume the position of the sphere center(x0, y0, z0) and its radius are both given.
(x - x0)^2 + (y -…

user10770001
- 3
- 2
0
votes
2 answers
Solving system of equations on MATLAB, when a constant exists in variable matrix?
How do I solve the following system of equations on MATLAB when one of the elements of the variable vector is a constant? Please do give the code if possible.
More generally, if the solution is to use symbolic math, how will I go about generating…

MaxFrost
- 217
- 1
- 6
0
votes
0 answers
Solving for power of a non linear equation in matlab
I have been trying to solve for n in the equation given below in matlab. All the rest of the values are known :
H_obs = 1*61 vector, dhdx = 1*61 vector, a = 1*61 vector. All the values of all the vectors are known
a =…

Crossfit_Jesus
- 53
- 4
- 18
0
votes
1 answer
Improve accuracy when solving a linear system where equations have coefficients ranging from E13 to E-18
i am doing some scientific calculations using python.I got into trouble when solving linear equations,where some coefficients are very large ~ E13 , some are very small ~E-69.It gives me a inaccurate solutions.
The equations,as folowing in the code,…

xv cheng
- 3
- 3
0
votes
1 answer
What would be the best algorithm to solve a track path in the quickest way?
Fun question.
Consider we have a race track with cars which need to start from point A to point B without going off track. The track will be a grid with nodes. What best algorithm would be fit for this to find the quickest path and possibly also…

Kevin Vella
- 1,869
- 1
- 16
- 18
0
votes
1 answer
How does one find a recurrence equation (for this pseudocode)?
I've been tasked with finding the answers for the questions below, but honestly I'm completely lost as where to start. I'm not looking for straight answers per say (although they would be appreciated), but rather how I can find/derive them. I…

Philip Bal
- 23
- 9