Questions tagged [linear-equation]

An algebraic equation of the form y = mx+b

A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and (the first power of) a single variable. More on Wolfram and Wikipedia.

203 questions
1
vote
4 answers

solving two linear equation in program

I have two lines UV and PQ, with U(15,10) V(50,25) and P(40,10) and Q(30,30). and i am finding a point of intersection between these two points. I am forming two linear equations for that: eq 1: Ux + t(Vx-Ux) = Px +s(Qx-Px) eq2 I want to solve…
Force.comBat
  • 235
  • 2
  • 3
  • 11
1
vote
4 answers

How to solve linear equations using a genetic algorithm?

I want to solve a system of n linear equations containing n variables using a genetic algorithm. I am having difficulty in defining the crossover operation as the solution may consist of floating point values. How do I proceed? It seems possible,…
Rohit Banga
  • 18,458
  • 31
  • 113
  • 191
1
vote
1 answer

How to solve a system of linear equations with b=0 in R

In R I need to solve a system of linear equations (Ax=b), where b=0. By using solve() it just returns a zero vector for the answer, but I want the non-zero solutions of the system. Is there any way for it?
Mahmoud
  • 844
  • 1
  • 10
  • 17
1
vote
1 answer

How to Solve two linear equations with two variables in java..?

I have following equations: center_y -y1 = m * ( center_x - x1 ); start_y - y1 = m * ( start_x - x1 ); where values of center_y,center_x,start_y,start_x and m are known and i want to get values of x1 and y1... Kindly provide an appropriate…
Amritpal Singh
  • 984
  • 2
  • 14
  • 33
1
vote
1 answer

non-zero solution for linear equation with numpy

How to get non-trivial solution for such equation with Numpy? r1 = r1 * 0.03 + r2 * 0.88 + r3 * 0.2425 + r4 * 0.03 + r5 * 0.03 r2 = r1 * 0.455 + r2 * 0.03 + r3 * 0.2425 + r4 * 0.03 + r5 * 0.88 r3 = r1 * 0.455 + r2 * 0.03 + r3 * 0.03 + r4 * 0.03 +…
mirt
  • 1,453
  • 1
  • 17
  • 35
0
votes
1 answer

Which one is faster / more stable: inverting matrix or solving three systems of linear equations with multiple right hand sides?

I have two equations I'm solving on each recursive round: X = A - inv(B) * Y * inv(B), X = X + A' * inv(B) * A, I solve the problem this way: C = inv(B)Y <=> BC = Y, solve C. D = Cinv(B) <=> DB = C <=> B'D' = C', solve D' E = inv(B)*A <=> BE = A,…
Jouni
0
votes
3 answers

Two Unknowns 3 Equations

I have 3 eqns and 2 unknowns Hb and Hbo2, they look like this: Bxy = AB * HB + AB * Hbo2 Rxy = AR * HB + AR * Hbo2 Gxy = AG * HB + AG * Hbo2 Now I have been trying to use a matrix method in order to solve the unknowns for them equations, which is a…
Antony
  • 65
  • 2
  • 8
0
votes
2 answers

Solve a big system of equations

I have a system of equations with 800 unknowns in the form of the equation Ku=F (the dimensions of the matrix K are 800*800 and naturally the dimensions of the two matrices u and F will be 800*1) where some of the unknowns are in the matrix F and…
Mehdi Miri
  • 25
  • 5
0
votes
2 answers

Underdetermined Linear System of Equation

F1 + F2 + F3 + F4 + F5 + F6 = 9810; -F1*0.52 - F2*0.52 + F3*0.3 + F4*0.3 + F5*0.64 + F6*0.64 = 0 (F1 + F3 + F5)*(0.94) - (F2 + F4 + F6)*(0.74) = 0 I want to solve this underdetermined system of equations and add a constrain for all values must be…
0
votes
0 answers

Matrix equation with Mathematica

I'm trying to solve the equation H1 = S.H2-H2.S where H1 and H2 are known 10x10 matrices depending on two parameters J1,J2 meanwhile S has to be determined. In my try, I do Define matrices H1 = J1/2*{{-1/2, 1, 0, 0, 0, 0, 0, 0, 0, 0}, {1, -1/2,…
0
votes
1 answer

How do I solve linear equation?

Basically, I need to solve the number of classes to be attended to reach a certain percentage. It leaves me with this formula: required_percentage=(attended+x/conducted+x)*100. Here, I require "x" as it is the number of classes to be attended. I…
0
votes
1 answer

Solve a system of N equations with N unknowns using Julia

I have : a set of N locations which can be workplace or residence a vector of observed workers L_i, with i in N a vector of observed residents R_n, with n in N a matrix of distance observed between all pair residence n and workplace i a shape…
0
votes
0 answers

Want to get linear equation from model output. Also want to get a single coefficient value for a column where multiple lables are there in the eqn

Note(I have used One hot encoding because my data have multiple labels for multiple columns)I have build one linear regression model using R.From the model output I am able to get the linear equation. As my data contains multiple labels for a…
0
votes
1 answer

Fast solution of linear equations starting from approximate solution

In a problem I'm working on, there is a need to solve Ax=b where A is a n x n square matrix (typically n = a few thousand), and b and x are vectors of size n. The trick is, it is necessary to do this many (billions) of times, where A and b change…
Alex I
  • 19,689
  • 9
  • 86
  • 158
0
votes
0 answers

How to solve simultaneous equations without using any packages

I'm trying to solve a 3x3 matrix using cramer's rule and as I'm new to python I'm finding it difficult to figure out my answer alone I've been doing research on how to do it using different methods but I've came to a stop near the end of it. The…
Jherky
  • 13
  • 4