I am starting a new program and trying to decide what platform to write it in. The Engineer in me is developing this program and there is alot of matrix algebra going on. My available options are MathCAD, VBA, and FORTRAN.
I am using 4x4 matrices and 4 term vectors for everything. I know I can do this in MathCad (Simliar to Maple) but I am not aware of how to throw a GUI in this. Mathcad also has issues with running large loops to increment motions of an input body.
I can write my own subs() in VBA to do all of the matrix algebra, but I am wondering about VBA and its accuracies and decimal precision with arrays. My input motion runs in increments of .0001 degrees which is .0000017453 radians, and I am assuming that VBA runs off radians like Excel. I need to hold mathematical precision at high numbers of decimal places (8 or more) as I am writing this code to catch spikes in the motion that relate to high forces which will result in a wheel of my race car flying off.
Is anyone aware of the best way to handle large quantities of arrays/matrices with high decimal precison?
I have a feeling that I am going to end up back in FORTRAN for this one, but I am looking for some advide before I start the code.
Also, if anyone has a sub() for a simultaneous equation solver (20 equations, 20 unknowns, solve them all) I would appreciate it. I don't feel like rewriting my old FORTRAN one if I don't have to.
I am using 4x4 matrices and 4 term vectors for everything. I know I can do this in MathCad (Simliar to Maple) but I am not aware of how to throw a GUI in this. Mathcad also has issues with running large loops to increment motions of an input body.
I can write my own subs() in VBA to do all of the matrix algebra, but I am wondering about VBA and its accuracies and decimal precision with arrays. My input motion runs in increments of .0001 degrees which is .0000017453 radians, and I am assuming that VBA runs off radians like Excel. I need to hold mathematical precision at high numbers of decimal places (8 or more) as I am writing this code to catch spikes in the motion that relate to high forces which will result in a wheel of my race car flying off.
Is anyone aware of the best way to handle large quantities of arrays/matrices with high decimal precison?
I have a feeling that I am going to end up back in FORTRAN for this one, but I am looking for some advide before I start the code.
Also, if anyone has a sub() for a simultaneous equation solver (20 equations, 20 unknowns, solve them all) I would appreciate it. I don't feel like rewriting my old FORTRAN one if I don't have to.