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
-2
votes
1 answer

Solving n linear systems efficiently

I have n (very large) independent linear systems (Ax = b_i). They all have the same A, but b_i is different for (i = 1, ..., n). I want to solve these n systems in parallel in CUDA. I was thinking that it might be most efficient to do the LU…
-2
votes
3 answers

Solving linear system with inequality constraints in Python or Matlab

I want to solve a linear system which is quite complicated, I take the following equations for an example: (1) x + y = 0; (2) x * y = -4; (3) x > 0; If only (1) and (2), there are two sets of solutions. So I add (3) to remove the ambiguity.…
leoujz
  • 35
  • 1
  • 6
-2
votes
1 answer

Assigning weight to a variable Python/linear equations

I am trying to assign a weight to a variable using a minimum value, optimal and maximum. For example, I have a calculated float for Temperature (Tm) of DNA sequences (calculated based on NN joining algorithm). I am only interested in sequences that…
April
  • 89
  • 7
-3
votes
1 answer

Solving Ax = b , CUDA vs Matlab

I've done the following test on Matlab: n = 10000; A = rand(n,n); b = rand(n, 1); tic y = A\b; toc On my Intel i7 gen 5 machine (12 cores) the result is ~ 5 seconds. Then, I've trying to do the same using CUDA 9.2 sample SDK code (see…
paduraru2009
  • 595
  • 2
  • 5
  • 11
-3
votes
1 answer

Finding all the ordered pairs of integers lying on a line ax+by=c in better than O(n^2) time complexity

I am trying to write a code which can input 3 long int variables, a, b, c. The code should find all integer (x,y) so that ax+by = c, but the input values can be up to 2*10^9. I'm not sure how to do this efficiently. My algorithm is O(n^2), which is…
-4
votes
1 answer

c++: can I use .find function to look for multiple elements in a string

c++: can I use .find function to look for multiple characters in a string ex: looking for + and - in an array of linear equations
-5
votes
2 answers

unable to solve the following equations in MATLAB

Following is a part of a code I am writing in matlab, here I want to carry out the following simple mathematical operation [A][X]=[B], where [X] is unknown. In my case I have length of k around 1600000. So all I want is to get the values for g1,g2…
-6
votes
4 answers

set of n-linear equations in matlab

I have some trouble on setting of n-linear equations in matlab.I don't know how can I declare in matlab.I need matlab code for setting of n-linear equations..
Şeref Acet
  • 311
  • 1
  • 7
  • 15
1 2 3
13
14