1. RE: Hey
- Posted by "Ricardo M. Forno" <rforno at uyuyuy.com> Aug 19, 2004
- 456 views
I don't think FORTRAN is more mathematical than EUPHORIA. On the contrary, FORTRAN is less flexible than most modern languages from the mathemathical point of view. Regards. ----- Original Message ----- From: Lucius Hilley <l3euphoria at bellsouth.net> To: <EUforum at topica.com> Sent: Wednesday, August 18, 2004 4:19 PM Subject: Re: Hey > > > Fortran is much more mathematical > but I don't know fortran. > I have no idea how to use it. I just know that. > ForTran means Formula Translation. > It was designed with mathmatics in mind. > > unkmar > Ask for help, we will answer. > > ----- Original Message ----- > From: "tino rozzo" <guest at RapidEuphoria.com> > To: <EUforum at topica.com> > Sent: Wednesday, August 18, 2004 2:53 PM > Subject: Hey > > > > posted by: tino rozzo <teak at linux.net> > > > > > > I hope to learn Euphoria. Looks easy. But too much algebra instruction in > all languages, I need something more mathmatical. > > > > Thanks > > Tino > > > > > > >
2. RE: Hey
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Aug 19, 2004
- 442 views
Ricardo M. Forno wrote: > > I don't think FORTRAN is more mathematical than EUPHORIA. On the contrary, > FORTRAN is less flexible than most modern languages from the mathemathical > point of view. Ricardo, I don't know who started to reflex about FORTRAN here. But one thing is indeed the truth: FORTRAN contains not only plenty of mathematical functions, it has also the data type COMPLEX (and plenty of complex functions)! Therefor, you are able to do things which are not easy to realize in EUPHORIA, like complex arrays! Unfortunately EUPHORIAs 'atom' contains only integers and real numbers, but not complex numbers. If the atom would also contain complex numbers, then all kind of FORTRAN programs could easily be transformed into EUPHORIA (except for execution speed). Nave a nice day, 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 | ----------------------------------------------------
3. RE: Hey
- Posted by Tommy Carlier <tommy.carlier at pandora.be> Aug 19, 2004
- 455 views
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. -- tommy online: http://users.telenet.be/tommycarlier Euphoria Message Board: http://uboard.proboards32.com
4. RE: Hey
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Aug 19, 2004
- 477 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 | ----------------------------------------------------
5. RE: Hey
- Posted by Tommy Carlier <tommy.carlier at pandora.be> Aug 19, 2004
- 427 views
Rolf Schröder wrote: > 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. If you don't know the datatypes in advance, you should pass the type as the first element of the sequence: {COMPLEX, r1, c1}, {VECTOR, ...}, {MATRIX, ...}, ... My library was very simple. > Is it possible to write...? Yes, anything is possible in Euphoria -- tommy online: http://users.telenet.be/tommycarlier Euphoria Message Board: http://uboard.proboards32.com