🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2466

Re: Learning other languages (Was: Fortran vs. C for numerical work)

#2466
From: Greg Lindahl
Date: Fri, 07 Dec 1990 17:42
22 lines
1091 bytes
In article <8960031@hpfcso.HP.COM> mjs@hpfcso.HP.COM (Marc Sabatella) writes:

> Other than that, why is
>
>	C = SQRT( SIN(X) + LOG(Y) )
>
>perceived to be more "natural" than
>
>	c = sqrt( sin(x) + log(y) );

Try

	C = ABS( SQRT(X) )

vs.

	c = abs( sqrt(x) );

Oops. I guess C++ has what it needs to support intrinsic functions,
but that's not in C. It's not a big problem, but I perceive intrinsics
as being more "natural". After all, I write "+" to add integers or
floating point...
Technical Details
Message-ID: <1990Dec7.174246.11513@murdoch.acc.Virginia.EDU>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!emory!gatech!mcnc!uvaarpa!murdoch!astsun7.astro.Virginia.EDU!gl8f
References: <13457@chaph.usc.edu> <8960031@hpfcso.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!emory!gatech!mcnc!uvaarpa!murdoch!astsun7.astro.Virginia.EDU!gl8f
From: gl8f@astsun7.astro.Virginia.EDU (Greg Lindahl)
Newsgroups: comp.lang.misc
Subject: Re: Learning other languages (Was: Fortran vs. C for numerical work)
Message-ID: <1990Dec7.174246.11513@murdoch.acc.Virginia.EDU>
Date: 7 Dec 90 17:42:46 GMT
References: <13457@chaph.usc.edu> <8960031@hpfcso.HP.COM>
Sender: news@murdoch.acc.Virginia.EDU
Organization: Department of Astronomy, University of Virginia
Lines: 22