1. RE: Hey

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
> >
> >
>
>
>

new topic     » topic index » view message » categorize

2. RE: Hey

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    |
----------------------------------------------------

new topic     » goto parent     » topic index » view message » categorize

3. RE: Hey

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

new topic     » goto parent     » topic index » view message » categorize

4. RE: Hey

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    |
----------------------------------------------------

new topic     » goto parent     » topic index » view message » categorize

5. RE: Hey

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 blink

--
tommy online: http://users.telenet.be/tommycarlier
Euphoria Message Board: http://uboard.proboards32.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu