Click here to Skip to main content
15,918,889 members
Home / Discussions / C#
   

C#

 
AnswerRe: Excel to SQL Pin
Mycroft Holmes24-Feb-10 15:42
professionalMycroft Holmes24-Feb-10 15:42 
Question3D library/engine .net Pin
LimeMan24-Feb-10 14:04
LimeMan24-Feb-10 14:04 
AnswerRe: 3D library/engine .net Pin
AspDotNetDev24-Feb-10 14:37
protectorAspDotNetDev24-Feb-10 14:37 
GeneralRe: 3D library/engine .net Pin
LimeMan25-Feb-10 4:43
LimeMan25-Feb-10 4:43 
GeneralRe: 3D library/engine .net Pin
AspDotNetDev25-Feb-10 9:22
protectorAspDotNetDev25-Feb-10 9:22 
AnswerRe: 3D library/engine .net Pin
jimclack26-Feb-10 9:14
jimclack26-Feb-10 9:14 
GeneralRe: 3D library/engine .net Pin
LimeMan28-Feb-10 10:18
LimeMan28-Feb-10 10:18 
QuestionSQL database with C#? Pin
Iman Mohtashemi24-Feb-10 12:57
Iman Mohtashemi24-Feb-10 12:57 
Hi,
Below is the code to create a 3 x 3 matrix with the vector (A system of linear equstions)
2x+ y -z = 8
-3x -3y +2z = -11
-2x +y + 2z = -3

The method works fine and displays the solution. Instead of typing in the numbers for the 3 x 3 matrix I would like to create a method for an arbitrary n x n matrix with data in an excel file. For example I would like to do the operations on a file that is 50 x 50 in an excel file. ( iguess I could type in all 2500 values but that would be stupid even for a C# newbie. What would be the code to perform such an operation?



static void TestGaussJordan()
{
LinearSystem ls = new LinearSystem();
MatrixR A = new MatrixR(new double[3, 3] { { 2, 1, -1 }, { -3, -1, 2 }, { -2, 1, 2 } });
Console.WriteLine(" Matrix is \n " + A);
VectorR b = new VectorR(new double[3] { 8, -11, -3 });
Console.WriteLine(" Vector b is \n " + b);
VectorR x = ls.GaussJordan(A, b);
Console.WriteLine("Solution x=\n" + x)
AnswerRe: SQL database with C#? Pin
AspDotNetDev24-Feb-10 14:36
protectorAspDotNetDev24-Feb-10 14:36 
GeneralRe: SQL database with C#? Pin
Iman Mohtashemi24-Feb-10 15:39
Iman Mohtashemi24-Feb-10 15:39 
GeneralRe: SQL database with C#? Pin
AspDotNetDev24-Feb-10 16:56
protectorAspDotNetDev24-Feb-10 16:56 
QuestionPurpose of Clip member in Graphics Pin
baranils24-Feb-10 10:34
baranils24-Feb-10 10:34 
AnswerRe: Purpose of Clip member in Graphics Pin
Dr.Walt Fair, PE24-Feb-10 11:13
professionalDr.Walt Fair, PE24-Feb-10 11:13 
GeneralRe: Purpose of Clip member in Graphics Pin
baranils24-Feb-10 20:28
baranils24-Feb-10 20:28 
GeneralRe: Purpose of Clip member in Graphics Pin
RichardM124-Feb-10 20:38
RichardM124-Feb-10 20:38 
GeneralRe: Purpose of Clip member in Graphics Pin
baranils24-Feb-10 20:50
baranils24-Feb-10 20:50 
GeneralRe: Purpose of Clip member in Graphics Pin
Dr.Walt Fair, PE25-Feb-10 4:00
professionalDr.Walt Fair, PE25-Feb-10 4:00 
GeneralRe: Purpose of Clip member in Graphics Pin
baranils25-Feb-10 4:10
baranils25-Feb-10 4:10 
QuestionAsynchronous socket programming Pin
Frozzeg24-Feb-10 8:02
Frozzeg24-Feb-10 8:02 
AnswerRe: Asynchronous socket programming Pin
Paulo Zemek24-Feb-10 8:40
Paulo Zemek24-Feb-10 8:40 
GeneralRe: Asynchronous socket programming Pin
Frozzeg24-Feb-10 9:23
Frozzeg24-Feb-10 9:23 
QuestionAnyone else using ADO.Net 2.0, stored procedures and wcf for databinding rather than using another framwork? Pin
ToddHileHoffer24-Feb-10 7:13
ToddHileHoffer24-Feb-10 7:13 
AnswerRe: Anyone else using ADO.Net 2.0, stored procedures and wcf for databinding rather than using another framwork? Pin
Dr.Walt Fair, PE24-Feb-10 7:49
professionalDr.Walt Fair, PE24-Feb-10 7:49 
GeneralRe: Anyone else using ADO.Net 2.0, stored procedures and wcf for databinding rather than using another framwork? Pin
ToddHileHoffer24-Feb-10 9:25
ToddHileHoffer24-Feb-10 9:25 
AnswerRe: Anyone else using ADO.Net 2.0, stored procedures and wcf for databinding rather than using another framwork? Pin
PIEBALDconsult24-Feb-10 8:55
mvePIEBALDconsult24-Feb-10 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.