[Tecomp-user] tecomp, MATRIX class
Status: Beta
Brought to you by:
helmut_brandl
From: Helmut B. <hel...@gm...> - 2009-09-10 15:07:43
|
-------- Original Message -------- Subject: tecomp, MATRIX class Date: Sat, 05 Sep 2009 11:11:43 +0200 From: Jörgen Tegnér <jor...@te...> To: hel...@gm... Hi, yesterday I downloaded and tinkered with tecomp again. Nice job! A short example with COMPLEX shows an error though, either in my code or in the interpreter, regarding conversion of basic types. /Jörgen (I got your adress from a posting on comp.lang.eiffel as I couldn't find any contact info on the tecomp site.) Example: conjugate,conj:like Current local r,i: REAL do r := Current.real -- i := -Current.imag --The following line doesn't give the same results as the first --or last i := -1*Current.imag --Change to -1.0 and all's well -- i := Current.imag.negated create Result.make(r,i) end |