News for hackers. Stuff that matters.
Re:Inventing an Operation to Solve x^x = y (2000) by zabzonk on Thursday November 28, 2019 @03:47PM (#21660080)
Might be useful if it was stated at the start of the post exactly what the ^ operator is supposed to do - it does different things in different programming languages.
Re:Inventing an Operation to Solve x^x = y (2000) by saagarjha on Thursday November 28, 2019 @03:55PM (#21660120)
In context, I think it’s pretty clear that it’s exponentiation. Mostly because the context is math where the meaning is a lot more unambiguous.
Re:Inventing an Operation to Solve x^x = y (2000) by namirez on Thursday November 28, 2019 @04:52PM (#21660429)
I always felt the Fortran exponentiation operator (* *), which is inherited by javascript and php, was more intuitive notation.
Re:Inventing an Operation to Solve x^x = y (2000) by samatman on Thursday November 28, 2019 @07:16PM (#21661033)
Interesting, the caret looks better to my eyes, since the real notation is x², thus x^2 is pointing at where the 2 should be.

But I get the reading of double-asterisk as 'multiplication of multiplication' as well, either is fairly transparent really.

Re:Inventing an Operation to Solve x^x = y (2000) by kaoD on Friday November 29, 2019 @05:29AM (#21663494)
Indeed. To me C's ^ as xor has always been the weird one since it actually looks like a logical and: https://en.m.wikipedia.org/wiki/List_of_logic_symbols