473,761 Members | 2,824 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Solving linear equations in C++?

Hi,

I've to solve a system of linear equations and inequations in C++. Are
there (free) librarys for that topic?

Regards,

Thomas

Oct 4 '06 #1
4 9356

? "Thomas" <t-*********@gmx.d e?????? ??? ??????
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hi,

I've to solve a system of linear equations and inequations in C++. Are
there (free) librarys for that topic?

Regards,

Thomas
Take a look at GSL:
http://www.gnu.org/software/gsl/
--
Papastefanos Serafeim
Oct 4 '06 #2
Papastefanos Serafeim wrote:
? "Thomas" <t-*********@gmx.d e?????? ??? ??????
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hi,

I've to solve a system of linear equations and inequations in C++. Are
there (free) librarys for that topic?

Regards,

Thomas

Take a look at GSL:
http://www.gnu.org/software/gsl/
I had a look on this package before. But as far as I have seen, it is
not possible to solve a set of equation and inequations. I have found
only some functions for solving pure system of equations.

Regards,

Thomas

Oct 4 '06 #3

"Papastefan os Serafeim" <se******@otene t.grwrote in message
news:eg******** **@ulysses.noc. ntua.gr...
>
? "Thomas" <t-*********@gmx.d e?????? ??? ??????
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hi,

I've to solve a system of linear equations and inequations in C++. Are
there (free) librarys for that topic?

Regards,

Thomas

Take a look at GSL:
http://www.gnu.org/software/gsl/
--
Papastefanos Serafeim

try ppLinear, it's a class library for
linear algebra in C++ and comes
compiled for VC6 and Linux GCC
its free

www.pecos-place.com
Oct 4 '06 #4

check out Numerical Recipes in C book On-Line
http://www.library.cornell.edu/nr/bookcpdf.html

- Osama Aouda

On Oct 4, 7:39 am, "Bill Shortall" <p...@cminet.ne twrote:
"Papastefan os Serafeim" <seraf...@otene t.grwrote in messagenews:eg* *********@ulyss es.noc.ntua.gr. ..


? "Thomas" <t-witkow...@gmx.d e?????? ??? ??????
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hi,
I've to solve a system of linear equations and inequations in C++. Are
there (free) librarys for that topic?
Regards,
Thomas
Take a look at GSL:
http://www.gnu.org/software/gsl/
--
Papastefanos Serafeimtry ppLinear, it's a class library for
linear algebra in C++ and comes
compiled for VC6 and Linux GCC
its free

www.pecos-place.com
Oct 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2201
by: nikie | last post by:
I'm a little bit stuck with NumPy here, and neither the docs nor trial&error seems to lead me anywhere: I've got a set of data points (x/y-coordinates) and want to fit a straight line through them, using LMSE linear regression. Simple enough. I thought instead of looking up the formulas I'd just see if there isn't a NumPy function that does exactly this. What I found was "linear_least_squares", but I can't figure out what kind of...
7
2276
by: 116Rohan | last post by:
I have been trying to figure out how to solve uneqaulity problems I have two equations which I am trying to figure out What values of n will make 8n^2 < 64 * n * Lg n What I am trying to find is, is there a way to solve these kinds of problems? and also i am trying to figure out the below problem
3
1084
by: mano | last post by:
Hello.... Can anybody give me some idea ... How to write programs on (...(In C++)) Gauss elimination LU Decomposition finding Inverse Thanks
7
4112
by: Bigs | last post by:
Ok, I have been working on a Linear Equation program that will draw a line on my graph. But, I am not sure how to set up the y=mx+b in Java to return the (x1,y1) and (x2, y2) using only the slope and y-intercept. Can anyone tell me how to set up the linear equation in java. if (Global.psize == 1)//Check If Line Should Be Graphed { Global.slope = x1i2; Global.yinter = y1i2; Global.yinter = Global.y1i1;// b=y For First Point On y Axis....
6
8718
by: omesh | last post by:
hi guys.. i got a problem.. could anyone help me write a program.. the program is as follows:- 2. Solving systems of Linear equations using Iteration: You are required to write a C++ program which will solve system of linear equations with 3 or 4 unknowns (to be entered by the user). Your program should display a menu which will allow the user to choose whether he wants to (1) enter the number of unknowns, coefficients details, ......
2
6658
by: company1484 | last post by:
This program calculates the solution (x,y) of a system of linear equations in 2 variables. This is my third C programming assignment so be gentle. problem: 1)on my int menu() function definition, how would I include the scanf( "%d", &choice ); in the function definition for it to run right. It runs right without it, but I need it in there. #include <stdio.h> void displayMessage(); int hasSolution(double a, double b, double...
4
4881
by: sdufoo | last post by:
Hallo guys, I have to solve a system of Differential equations: http://picasaweb.google.de/sdufoo/EcuacionesDiferenciales02/photo#5228386949051570594 these are the equations of an induction motor, I have to program it in C because I will use a DSP (ADSP21062) in order to control the torque of the motor. I've read a little bit, and I think that I have to solve the equations using numerical methods, but there a lot of them, and It could be...
1
3207
by: HypeBeast McStreetwear | last post by:
Hello everyone. I got a assignment that states. The set of linear equations a11X1 = a12X2 = c1 a21X1 = a22X2 = c2 May be solved using Cramer’s rule: X1 = c1a22 – c2a12 a11a22 – a12a21
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9377
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.