Content deleted Content added
m Signing comment by 83.253.247.136 - "" |
Tag: |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{WikiProject banner shell|class=Start|
{{WikiProject Computer science |importance=Low}}
}}
ي
==[Untitled]==
Do programming languages actually exist where <tt>sin</tt> is a prefix operator? As far as I know, it's always a function requiring parentheses around its argument <tt>sin(x)</tt>, thus avoiding the ambiguity mentioned in the article.
<br>—[[User:Herbee|Herbee]] 11:37, 2004 Mar 5 (UTC)
Line 4 ⟶ 10:
: Yes. [[Haskell programming language|Haskell]] has such a function, as well as <tt>sin</tt> appearing as a postfix operator in the [[PostScript programming language]]. [[User:Dysprosia|Dysprosia]] 11:55, 5 Mar 2004 (UTC)
:: Not to mention several BASIC dialects (not only Sinclair's or Hewlett Packard's) or ordinary scientific calculators (Canon, Sharp, most CASIOs etc) where sin 2π = 0, just as in mathematics (i.e. implicit multiplication goes before prefix operators).
:: Also, operators may well be regarded as functions in their own right... and many function-oriented ("functional") languages demand no parenthesis-syntax for an ordinary prefix-operator/function. You simply write sin x, just as in mathematics. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/83.253.247.136|83.253.247.136]] ([[User talk:83.253.247.136|talk]]) 19:08, 15 November 2012 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot--> Is ''Common operator notation'' really a term in Computer Science? There's only 125 Google references, and almost all of those are to copies of this page. There is a commonality of operator notation among the computer languages descendent mostly from [[Fortran]], but this page rambles on for quite a while without really capturing the essence of the idea. (Sorry for being vague, but this article's vague approach to its topic gave me a vague impression of vagueness.) [[User:Tom Duff|Tom Duff]] 19:49, 23 August 2006 (UTC)
|