|
I need to programmatically solve a system of linear equations in C, Objective C, or (if needed) C++.
Here's an example of the equations:
-44.3940 = a * 50.0 + b * 37.0 + tx
-45.3049 = a * 43.0 + b * 39.0 + tx
-44.9594 = a * 52.0 + b * 41.0 + tx
From this...
Started by Adam Ernst on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
This is typically done....
Later, if you're doing more interesting linear algebra, looking around.
If you're looking for code, check out GiNaC into making these algorithms stable .
Algorithms (also see Simultaneous Linear Equations ).
|
|
Hello, I am looking for a method to determine if there is a solution to equations such as: 3n1+4n2+5n3=456 , where n1,n2,n3 are positive integers.
Or more general: are there zero or positive integers n1,n2,n3 ... that solves the equation k1n1+k2n2+k3n...
Started by Lior Kogan on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Unfortunately.
That's a linear programming problem.
And the additional constraint that n1, n2, n3 are integers .
|
|
The kernel trick maps a non-linear problem into a linear problem.
My questions are:
1. What is the main difference between a linear and a non-linear problem? What is the intuition behind the difference of these two classes of problem? And How does kernel...
Started by kunjaan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Non-linear equations are not homogeneous....
You can create solutions using combinations of other known solutions; this is one reason why Fourier transforms work so well .
Linear equations are homogeneous, and superposition applies.
|
Ask your Facebook Friends
|
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..
Answer Snippets (Read the full thread at stackoverflow):
Here you can find great://en.wikipedia.org/wiki/Matrix_equation
You can solve a linear system in various ways, depending on whether example: http:....
You can write n-linear equations as one matrix equation to solve it.
|
|
I have to find the equation for a linear function and the only information given is that the line passes through the point (6,1) and the x-intercept is twice the y-intercept. If I substitute (6,1) for a & b in the general linear equation of ax + by + ...
Started by outermeasure on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at sosmath):
I get the equation....
If I substitute (6,1) for a & b in the general linear equation of ax + by + c = 0,
.
I get-intercept.
If I substitute (6,1) for a & b in the general linear equation of ax + by + c = 0,
.
Intercept.
|
|
We are using a programming language that does not have a linear regression function in it. We have already implemented a single variable linear equation:
y = Ax + B
and have simply calculated the A and B coefficents from the data using a solution similar...
Started by lkessler on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's linear equations
k = aX1 + bY1 + cZ1 k = aX2 + bY2 + cZ2 k = aX3 + bY3 + cZ3
What you can do.
Yes, it's an easy linear algebra problem if you think of it the way Gil Strang does it.
|
|
Greetings,
I need to find X from this linear equation. I know it here is 0 but I want to know how its usually found. Also is there any calculator that can solve this. I usually use http://web2.0calc.com/ but it can't find this.
[img]http://www.mymathforum...
Started by martin_angelov on
, 5 posts
by 2 people.
Answer Snippets (Read the full thread at mymathforum):
Hint: ( √ x + √ (2 - x)) ² = 2 .
Here is the equation:
[img]http://www.mymathforum.com/cgi-bin/mimetex.cgi?sqrt%20x%20+%20sqrt{2-x}%20+%20sqrt{x^2%20-%203x}=sqrt%202[/img] Another try to post equation.
|
|
I have a system of 22 linear equations (exactly 22 equations and 22 unknowns) which are dynamically generated in an Excel spreadsheet. Is there a way to have Excel solve the system and produce a value for each of the unknown variables?
Another SO question...
Started by e.James on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If I were you I'd write a simple python script that reads the excel file, solve the equation (with numpy) and....
You should not ever consider Cramer's rule to solve a linear system to solve a linear system.
Than practical interest.
|
|
How can I validate linear equations with regular expressions or is there another way besides using regular expressions. I will use ^ to denote an exponent.
2x + 3 = 8 //This should validate fine
3x + 2y + 4z = 12 //This should validate fine
4x^2 + 2y ...
Started by Xaisoft on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You might.
I'd start by writing a definition of a valid linear equation a parser that would only generate a parse tree if the input was a valid linear equation.
Name, then of course this all crumbles.
|
|
I am looking for the general equation for a curve that fits the following requirements:
A cylinder of varying cross section is pulled through a regular frustum with an angle theta and a minimum radius R.
Initially the minimum distance between the two ...
Started by rodimusprime88 on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at artofproblemsolving):
I can....
It's just a matter of using by an equation.
So A(y)= my+b Well, there certainly IS some equation that describes the shape you want.
To simplify the equation I have been using a linear function for A(y).
Moved upwards.
|