[comp.lang.rexx] Is AREXX the best choice ???

rfrost@spam.ua.oz (Richard Frost) (01/03/90)

I am writing a program that manipulates matrices and allows the user to
perform row operations on them. The row operations involve FRACTIONS, NOT
floating point calculations. I find that fractional answers are far more
appropriate, especially when you are doing large matrix manipulations for
University Algebra assignments and you want to check your solution (try
solving a 13 x 7 Linear Program using the Simplex Algorithm .. BY HAND!).

Here are some examples of row operations:

                  	r1 = (1/2)*r2 + r3
          		r1 = (11/27)*r5
         		r1 = -r5
 
{ Where:  r1 == row 1 etc. }

These can be typed into a string gadget and parsed by my program, I would
like to know if AREXX could do the parsing AND if this sort of script 
can be easily included in an AREXX script. I have read about AREXX and
it seems to me that AREXX can only accept function calls with arguments, so 
the first example would be handled like:

 	  r1 = frac_add( frac_mult(frac('1/2'),r2),r3)

          where frac_mult(a,b) = fraction a * fraction b
	 	frac_add(a,b)  = fraction a + fraction b
		
		frac('a/b')    = the fraction a/b


Is it possible to get at the entire script line BEFORE AREXX reads it?
Hence allowing my own parser to read the line???

Or is there an easier way?

It looks as though I have a case where AREXX is not appropriate.

I would like to see some replies from some AREXX GURUS out there in USENET!!

I would REALLY like to USE the power of AREXX in my next Amiga program!!

Your help will be MUCH appreciated. I want to get this program finished an
submitted to FRED FISH some time next year. I want to help all those other
students who deal with matrices. My program is VERY user friendly and
involves a large amount of "point and click". I want to make it as user 
friendly as my previous program 'GravSim' the Gravity Simulator.

______________________________________________________________________________
_          ___       | Email Address:  rfrost@spam.ua.oz.au    
I)	   I_        | 
I\ ichard  I rost    | FidoNet :805/680 Richard Frost <- I think this is OK??
---------------------+--------------------------------------------------------
                   THE AMIGA,the programmers dream machine!!

Bewildered Earth Scientist: "How do you re-wire alien equipmnent like that??"
Dr. Who: "Its easy when you've had 900 years experience in alien technology."
______________________________________________________________________________