Short: A small cli program which solves matrixes. solver vbcc harlock Author: harlock@tso.cin.ix.net Uploader: harlock@tso.cin.ix.net Version: .2 Type: misc/math This is a program which I wrote for my computer science class. I'm uploading it to aminet because it works well, and I thought somebody out there might like it. It works on all of the matrixes I've thrown at it. The only time it'll spit up garbage is if the numbers start to exceed the maximum for a float value, (something like 3.4e38 so it isn't very likely.). I'm includeing the source code for anyone who wants to attempt to modify it for their own purposes. After I've fixed it up to my satisfaction, I'm going to convert this algorythem to a function and upload it to the dev/c section of aminet also. Programmers can then use it in their own programs, (should they feel the need). NOTES, THIS IS A CLI COMMAND, I think it will run if clicked on from WorkBench, but don't count on it. You shouldn't have to modify the stack value, but if it crashes, and there's no apperent reason, try setting the stack value of the CLI up a little, (ie. STACK=40000). NOTES ON COMPILING, This program was written in C, and was compiled useing vbcc. vbcc is freely available on aminet and this program will compile under the aminet version without any additional files. vc -+ -lmieee -lextra matrix.c -o matrix shoud do the trick if you have the package set up properly. I have used one non-standard function called getch(). If you wish to compile this source with another compiler (ie Dice, gcc, Sas-C), change all the getch() functions to getchar(). The executable won't work exactly the way it was intended, but it should allow you to compile a working version. FUTURE, There are a couple of things I'de like to add to this program before I say it is the "full" version. I'de like to add a routine that will reduce the numbers in the matrixes on the fly while it is being solved. This would make it nearly impossible to give the program numbers that were to large for it to handle, and also, the possibility of solveing matrixes of enourmous size would also be possible, (ie 99x100 would not be inconceivable). FAR FUTURE, I don't know much about amiga specific programming. I'm trying to learn, but it is slow going. If I ever master it, I wouldn't mind giving this program a nice gadtools 2.x, 3.x look. For now, unless someone volunteers to give it a gui, it will remain a shell command. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 19040 8801 53.7% 29-Apr-98 15:32:14 Matrix 3753 900 76.0% 29-Apr-98 15:31:00 Matrix.c 2868 1352 52.8% 29-Apr-98 15:46:12 Matrix.readme -------- ------- ----- --------- -------- 25661 11053 56.9% 30-Apr-98 01:15:38 3 files