Numerical C
mike at hpdcdb.UUCP
mike at hpdcdb.UUCP
Mon May 21 11:58:00 AEST 1984
/***** hpdcdb:net.lang.c / utcsrgv!ray / 9:11 am Apr 18, 1984*/
I do practically nothing but numerical computation on the computer.
Although I realize that c was not written to do this, I often use it since
it seems to run faster than F77. But, I agree with Steve Crandall. A
complex type would be a real asset since, if I were to implement complex
arithmetic using c as it stands now (I haven't) I would have to write all
sorts of functions to implement + - * / as well as sin, cos, tan, etc. etc.
It would be fun but I don't want to waste the time debugging all
those routines. C'mon you compilier hackers, let's have a complex type
(and double complex) in c. (While you're at it, how about an option to use
the IEEE standard floating point that the VAXEN support.) It sure would
be nice to have an exponent range of +-300!!
(Shine my shoes, trim my beard, give me service!! :-) )
Ray Allen
utcsrgv!ray
(416) 978-5036
/* ---------- */
There are machines on the market that 1) Have complex functions in library
form that are accessible from C or f77 (I know because I've built them). Unfortunately the "complex" type per se isn't available in C but you can easily
hack a struct typedef to make one. Double complex is available too.
Re 2): All HP machines use IEEE floating pt format. Having implemented it
I can attest to the fact that you want to go with IEEE or don't but NEVER
mix the two: No one could figure out the library support for code like that.
Mike McNelly
(303) 226-3800
More information about the Comp.lang.c
mailing list