Questions tagged [equation-solving]

763 questions
0
votes
0 answers

Solving position trilateration with scipy? 4 equations, 3 variables

I'm trying to find the coordinates of a point in cartesian space knowing only how far it is from other known points. I originally tried scipy.optimize.fsolve with 3 distance formulas and quickly learned that 4 distances are necessary because 3…
M N
  • 1
  • 1
0
votes
1 answer

Using java language to calculate the value of an expression(or equation) dynamically

I have to write a method that accepts three arguments and an arithmetic expression(or equation).Based on the equation the result has to be returned.But the problem is that the equation is given as a string that has to be converted to do the…
Kiran Muralee
  • 2,068
  • 2
  • 18
  • 25
0
votes
0 answers

Solving equations with circular reference in R

I have a set of following equations: x = 11y y = x-5 The above equations are easy to solve if I rearrange the variables and solve using matrices. However, I want to pass the above equation as it is and solve them. Can someone suggest a way?
user3625024
  • 319
  • 1
  • 2
  • 11
0
votes
1 answer

Solving a linear system of equation with two variables in MATLAB

It might seem a simple question. I need it, though. Let's assume we have two equations: 2 * y + x + 1 = 0 and y - 2 * x = 0 I would like to find their bisection which can be calculated from this equation: |x + 2 * y + 1| |-2 *x + y…
Iman
  • 412
  • 4
  • 18
0
votes
0 answers

Find positive solutions in undetermined system of equations (revisited)

I tried to apply the method posted in Find positive solutions to undetermined linear system of equations to the set A=[0 0.0992 0.315 0.619 1; 0 0.248 0.315 0.248 0]; b=[0.1266 0.4363]. It is supposed that there exists a positive and constrained…
0
votes
2 answers

Create a math formula for conversions

I was wondering if I could get some help trying to create a simple math formula. I recently was given an interview to work as a tier1 programmer and was asked to make a program. I made the whole thing perfectly fine but what made me fail the…
0
votes
1 answer

Gauss Jordan Method in Basic C Multi

I am have a multi-dimensional array that needs to be resolved, to solve for the unknown values (x1,x2,x3,..). In this multi-dimensional array, my array size in the i and j coordinate are different; B[n][n+1]. I know this Basic C, Gauss Jordan Method…
Cherry_thia
  • 696
  • 1
  • 10
  • 24
0
votes
2 answers

Car Payment App involving an equation with negative exponents

I have to create an Car Payment app in java that prompts user for principal owing (P), interest rate (r) and the number of monthly payments (m) The monthly car payment MUST be calculated using this formula: P(r/12)/(1-(1+r/12)^-m) This is what I…
Bob
  • 3
  • 1
0
votes
2 answers

Symbolic computation with formulas and solver

I am looking for a programming language and a way to automatize the following problems. Given a formula connecting different variables, say g=GM/r^2, and values for all but one of the variables, (g=9.8,M=5E25,G=6.7E-11), how can I program a routine…
0
votes
1 answer

How to solve a zero order Bessel function equation in Matlab?

The equation is I0(a*x)=b, where a,b are constants, and I0(y) is zero order bessel function. I0(x)=1/(2*pi)*integral(x*cos(t)) dt [from 0 ->2*pi] I want to get the value of x when a and b are given. I just want the result, so it's not necessary…
Alex
  • 15
  • 3
0
votes
2 answers

Roots of a non-linear equation using Matlab

I am using Matlab to find the roots of a non-linear function. The equation is lengthy and I have used another .m to save the function, the code for which goes like function x_c = f_x_c(s,H,VA,Lo,qc,EA,NF,Sj,Fj) if (s < 0) || (s > Lo); disp('The…
0
votes
1 answer

How do I reiterate a set of equations in Matlab until convergence?

I have three equations, where u is previously defined as an mx1 vector and A is an mxn matrix: v = A'*u/norm(A'*u); s = norm(A*v); u = A*v/norm(A*v); I'm trying to reiterate these equations until they converge. I've been trying to use the solve()…
user3457834
  • 314
  • 3
  • 12
0
votes
2 answers

Use Matlab/Maple to find roots of a nonlinear equation

I am having difficulty in finding roots of a nonlinear equation. I have tried Matlab and Maple both, and both give me the same error which is Error, (in RootFinding:-NextZero) can only handle isolated zeros The equation goes like -100 +…
0
votes
1 answer

MATLAB Solving non-linear algebraic equation

I am trying to solve a vectorial equation where vectors are in polar form the equation is 100*exp((pi/3)*j) + 200*exp(x(1)j) - 300(x(2)*j) - 315 = 0; as you can see there is two unknowns in this equation x(1) and x(2) and since it's a complex…
0
votes
1 answer

Solve a system of equations with a constraint to x in Matlab

I have given a nxn upper triangular matrix R and I want to solve the system of equations Rx=0 where x is a vector of size n. Moreover the lowermost diagonalement of R is 0 (R(n,n)=0). Therefore I want to set x(n)=1. I tried some loops but I do not…
fYpsE
  • 67
  • 6