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 20:49, 13 February 2022
, 2 years ago→{{header|ALGOL 68}}: Remove unnecessary ;
ReeceGoding (talk | contribs) m (→{{header|R}}: Syntax highlighting.) |
m (→{{header|ALGOL 68}}: Remove unnecessary ;) |
||
Line 149:
print( ( " (-x)**p ", whole( (-x)**p, -4 ) ) );
print( ( " -(x**p) ", whole( -(x**p), -4 ) ) );
print( ( newline ) )
OD
OD
Line 160:
x = 5 p = 3 -x**p -125 -(x)**p -125 (-x)**p -125 -(x**p) -125
</pre>
=={{header|AWK}}==
<lang AWK>
|