User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Solving a system of equations. Page [1]  
1985
All American
2175 Posts
user info
edit post

I've got a large system of quadratic equations that I need to solve (~60 variables). I'm not sure how to do it.
All the equations are in a .txt file where each line is an equation that equals zero. Ie.

a*b+3*c+d
x*y+y*y+1
.
.
.

If I could do it in matlab without having to input the equations, that would be great, but i'm willing make a matrix or whatnot if need be. Any help would be great. Thanks!

2/18/2007 10:52:00 PM

CharlesHF
All American
5543 Posts
user info
edit post

Somebody teach this boy some linear algebra!

2/19/2007 11:24:29 PM

clalias
All American
1580 Posts
user info
edit post

^
Quote :
"a large system of quadratic equations "


you can do this in matlab without much effort. Just pretty much copy and paste, though you'll have to add some semicolons. You only have 60 eq'ns so it can't take that long.

In matlab you'll use "fsolve". Just check out the help file for that function.

[Edited on February 19, 2007 at 11:44 PM. Reason : .]

2/19/2007 11:40:19 PM

Perlith
All American
7620 Posts
user info
edit post

If you get bored and try it with Solver in Excel, let me know if it actually works ... Solver crashes way too often

[Edited on February 19, 2007 at 11:49 PM. Reason : .]

2/19/2007 11:49:18 PM

clalias
All American
1580 Posts
user info
edit post

matlab is way more robust, I wouldn't even waste your time attempting it in excel.

2/20/2007 12:00:29 AM

virga
All American
2019 Posts
user info
edit post

matlab can do the most amazing things

i'm out at the computational science and engineering conference this week, and the guys here 0wn matlab on a daily basis. it's incredible.

2/20/2007 4:28:50 PM

1985
All American
2175 Posts
user info
edit post

thanks.

also clalias, thank's for pointing out they were quadratic.

2/20/2007 7:35:29 PM

NCSUStinger
Duh, Winning
62452 Posts
user info
edit post

There's a system to the system.

2/20/2007 7:44:26 PM

 Message Boards » Study Hall » Solving a system of equations. Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.