RE: Hey
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Aug 19, 2004
- 531 views
Tommy Carlier wrote: > > Complex numbers are easy in Euphoria. Years ago I made a library to work with > complex > numbers. A complex number (in my library) was just a sequence with 2 atoms in > it. All > the usual functions were in the library. And it wasn't even hard to write the > thing. > I had just been working with Euphoria for about a week or 2. > Hi Tommy, that's not the problem. To write a = {r1,c1}. Is it possible to write a general matrix inversion routine for a general matrix with real or complex elements? How about a vector (in Eu a sequence) with real or complex elements, the data types of which you dont know in advance? Could you write: a = sqrt(-23.0) -- you could use a specialy written function b = sin(3.0) -- you supply olso your special function c = a*b -- this should NOT be a function! Of course you can circumvent the special case, but only these special cases. Thanks, Rolf ---------------------------------------------------- | Dr.Rolf Schröder | E B | | DESY MST-1 | C | | Notkestraße 85 | D | | D-22603 Hamburg | A | | Earth |-------------------------------| | Solar System | Phone : +49-40-8998-2628 | | Milky Way | Fax : +49-40-8994-2628 | | Local Group | mailto:Rolf.Schroeder at DESY.de | | Known Universe | http://adweb.desy.de/~rolf | ----------------------------------------------------