Article View: sci.math.num-analysis
Article #122Re: Imaginary Numbers in C
From: Andrew Mullhaupt
Date: Mon, 27 Jul 1992 20:30
Date: Mon, 27 Jul 1992 20:30
23 lines
1193 bytes
1193 bytes
In article <1992Jul26.162848.17382@usl.edu> pssres12@ucs.usl.edu (Vignes Gerard M) writes: >In article <92208.174123K3006E7@ALIJKU11.BITNET> <K3006E7@ALIJKU11.BITNET> writes: >>I am very unfamiliar with the C language, so I beg your indulgence. > > If you're going to go to all that trouble, > you might as well do it right. OK. > You can declare your own types (like complex and imaginary) > and then overload the conventional operators > +, -, *, /, to handle them easily and transparently > (even in combination with other numeric types). Or just use FORTRAN where it's already all done for you. You can call FORTRAN pretty easily from C. > Don't waste your time on C. Unless the program is performance critical. In which case C++ might not do at all. Later, Andrew Mullhaupt
Technical Details
Message-ID:
<1124@kepler1.rentec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!kepler1!andrewReferences:
<92208.174123K3006E7@ALIJKU11.BITNET> <1992Jul26.162848.17382@usl.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!kepler1!andrew From: andrew@rentec.com (Andrew Mullhaupt) Newsgroups: sci.math.num-analysis Subject: Re: Imaginary Numbers in C Message-ID: <1124@kepler1.rentec.com> Date: 27 Jul 92 20:30:50 GMT References: <92208.174123K3006E7@ALIJKU11.BITNET> <1992Jul26.162848.17382@usl.edu> Organization: Renaissance Technologies Corp., Setauket, NY. Lines: 23