digitalmars.D.bugs - opDiv & ifloat
- Thomas Kuehne (19/19) May 11 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Walter (4/10) May 11 2005 ifloat
- Thomas Kuehne (19/28) May 11 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Uwe Salomon (5/15) May 11 2005 Well, then the one which says that it is ok is wrong. Walter is 100% rig...
- Thomas Kuehne (18/32) May 11 2005 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 dmd: cannot implicitly convert expression (4i / 2i) of type float to ifloat Added to DStress as http://dstress.kuehne.cn/run/o/opDiv_10_A.d http://dstress.kuehne.cn/run/o/opDiv_10_B.d http://dstress.kuehne.cn/run/o/opDiv_10_C.d http://dstress.kuehne.cn/run/o/opDiv_10_D.d http://dstress.kuehne.cn/run/o/opDiv_10_E.d http://dstress.kuehne.cn/run/o/opDiv_10_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCglyc3w+/yD4P9tIRAjj+AJ4+uZoiMXovPi9A35k3YHH+lZyufwCeL2fs TP0QVz5xutS0ChsGReWPU60= =XAKG -----END PGP SIGNATURE-----
May 11 2005
"Thomas Kuehne" <thomas-dloop kuehne.thisisspam.cn> wrote in message news:rit129-at3.ln1 lnews.kuehne.cn...-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 dmd: cannot implicitly convert expression (4i / 2i) of type float toifloat Which is correct. An imaginary divided by an imaginary is a real number.
May 11 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Walter schrieb am Wed, 11 May 2005 10:26:57 -0700:"Thomas Kuehne" <thomas-dloop kuehne.thisisspam.cn> wrote in message news:rit129-at3.ln1 lnews.kuehne.cn...Interresting: The documentations I used (one math, the other computing) disagree with eachother. I'll take a closer look at this tomorrow. Note: I'm not talking about but about Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCgnHy3w+/yD4P9tIRAmShAJ9CzULIqlvulubMsD5GERIiYE3OegCfS6K1 K/PTQ3fWptIq/jWawRbI7jM= =xscW -----END PGP SIGNATURE-----dmd: cannot implicitly convert expression (4i / 2i) of type float toifloat Which is correct. An imaginary divided by an imaginary is a real number.
May 11 2005
Well, then the one which says that it is ok is wrong. Walter is 100% right about the underlying maths here. Note that 4.0i * 2.0i is also a real value: -8.0. Ciao uweInterresting: The documentations I used (one math, the other computing) disagree with eachother.dmd: cannot implicitly convert expression (4i / 2i) of type float toifloat Which is correct. An imaginary divided by an imaginary is a real number.
May 11 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Uwe Salomon schrieb am Wed, 11 May 2005 22:12:38 +0200:The computing docu used the "unusuall" approach of independent root dimensions: real (dim A) imaginary (dim B) complex (dim A+B) The math docu used the normal approach: real (dim A) complex (dim A+B) imaginary (dim A+B where the values in A=0) Moved the test cases to nocompile. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCgrYS3w+/yD4P9tIRAv1wAKCy+ZPHe3/42E9pxl42j4MzRxKNKACeLQVS EtjFU+eVhlKyrWRQOd0aSRc= =+tfd -----END PGP SIGNATURE-----Well, then the one which says that it is ok is wrong. Walter is 100% right about the underlying maths here. Note that 4.0i * 2.0i is also a real value: -8.0.Interresting: The documentations I used (one math, the other computing) disagree with eachother.dmd: cannot implicitly convert expression (4i / 2i) of type float toifloat Which is correct. An imaginary divided by an imaginary is a real number.
May 11 2005