Exponentiation with infix operators in (or operating on) the base: Difference between revisions
Exponentiation with infix operators in (or operating on) the base (view source)
Revision as of 23:11, 8 January 2022
, 2 years ago→{{header|R}}: Syntax highlighting.
Catskill549 (talk | contribs) (added AWK) |
ReeceGoding (talk | contribs) m (→{{header|R}}: Syntax highlighting.) |
||
Line 461:
</pre>
=={{header|R}}==
<lang
x <- c(-5, -5, 5, 5)
p <- c(2, 3, 2, 3)
Line 475:
5 2 -25 -25 25 -25
5 3 -125 -125 -125 -125</pre>
=={{header|Raku}}==
In Raku by default, infix exponentiation binds tighter than unary negation. It is trivial however to define your own infix operators with whatever precedence level meets the needs of your program.
|