Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
exponentiation operator (lack of)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="carlos, post: 2441430"] The FAQ points out a perfectly valid reason for omitting any sort Historically that is not quite correct. My first language was Fortran IV, used for my PhD thesis at UCB. In the 70s I briefly used Burroughs Algol (a derivative of Algol 60-68) and Gnu Pascal in the 80s. The exponentiation operators were **, ^ and **, respectively. Those 3 languages were widely used in their heyday although of course were not useful for low-level system programming. Algol 60 is supposed to have influenced C indirectly, but the ^ operator was renamed. As I noted, the lack is presently felt in low-level numerical applications of C. These are growing rapidly, especially in parallel & multicore processing. One reason: the ability of C to interact closely with the hardware and do resource management. This is critical in supercomputers. Second reason: the "feed" end of the Fortran pipeline is emptying. Example: our College of Engineering has not taught Fortran to undergraduates since 1997 (why? industry feedback). Numerical methods are taught to freshmen in C for low-level components and Matlab for high level scripts. One of our PhD students joined Mathworks two yrs ago, and she works primarily in C. Giving this ongoing enlargement in the scope of C applications, I see no reason why a new operator (** or ^^) could not be introduced to meet those needs either in a future standard, or in a "successor to C" , as discussed in another thread. It should have a high precedence, just under the dot. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
exponentiation operator (lack of)
Top