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
--
tommy online: http://users.telenet.be/tommycarlier
Euphoria Message Board: http://uboard.proboards32.com
|
Not Categorized, Please Help
|
|