Path: utzoo!mnetor!uunet!husc6!ncar!gatech!mcnc!decvax!decwrl!pyramid!prls!philabs!micomvax!zap!iros1!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.lang.c Subject: Re: Why I use C instead of fortran Message-ID: <980@mcgill-vision.UUCP> Date: 9 Mar 88 10:16:16 GMT References: <11440@brl-adm.ARPA> <3597@sdcc6.ucsd.EDU> <257@tolsun.oulu.fi> <259@tolsun.oulu.fi> Organization: McGill University, Montreal Lines: 23 In article <259@tolsun.oulu.fi>, jto@tolsun.oulu.fi (Jarkko Oikarinen) writes: [Apparently this is someone else (Jouko Holopainen?) again] > In aticle 4882 Tom Stockfisch writes: >> In article <4257> Jouko Holopainen writes by courtesy of Jarkko Oikarinen: >> [I use FORTRAN for nothing but complex arithmetic.] As soon as C++ >> becomes widely available, I won't use fortran at all. > Can You write a=b**c/d+e... in C++ with complex operators? Probably not (I don't think you can change the tokenizing rules to make ** a single operator), but you can certainly write a=b^c/d+e. (Though you may need to parenthesize to get ^ to take precedence over /, and it is arguably bad style to have ^ mean XOR for integers and exponentiation for complex.) > If this is the case, how can You redefine division? There is a syntax for it, which I don't know the details of (I don't use C++; I know what it can do but not the details of how it does it). der Mouse uucp: mouse@mcgill-vision.uucp arpa: mouse@larry.mcrcim.mcgill.edu