fanf: (Default)
[personal profile] fanf
http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf

On pages 11-15 this rant goes off on a tangent about branch cuts in complex arithmetic. It distinguishes between C99-style complex numbers, which have a separate type for bare imaginary numbers, and Fortran-style complex numbers, which do not. The authors assert that it isn't possible for Fortran-style complex numbers to handle signed zeroes correctly and therefore that programs written to use this style of arithmetic necessarily get branch cuts wrong.

This seems unlikely to me, if the programmer has suitable facilities for constructing or decomposing complex numbers from or into two reals. I guess they must be over-simplifying.

You look like the silent type

Date: 2006-05-31 14:10 (UTC)
From: [identity profile] hoiho.livejournal.com
I still don't really trust anything but int.

Although I'm passing my time at the moment by adding fractional type support to gcc.

Re: You look like the silent type

Date: 2006-05-31 15:03 (UTC)
From: [identity profile] hoiho.livejournal.com
Fixed point, type-A, which have no integer bits, so have a range from -1 to +1.
Basically, the _Fract type, as specified in Embedded C extensions (and also the associated _Accum types).

December 2025

S M T W T F S
 123456
78910111213
14151617181920
21222324 252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 2025-12-30 23:02
Powered by Dreamwidth Studios