Exponentiation with infix operators in (or operating on) the base: Difference between revisions

Content added Content deleted
Line 269: Line 269:
x is 5, p is 3, -x^p is-125, -(x)^p is -125, (-x)^p is -125, -(x^p) is -125
x is 5, p is 3, -x^p is-125, -(x)^p is -125, (-x)^p is -125, -(x^p) is -125
</pre>
</pre>

=={{header|Maple}}==

<lang maple>[-5**2,-(5)**2,(-5)**2,-(5**2)];
[-25, -25, 25, -25]

[-5**3,-(5)**3,(-5)**3,-(5**3)];
[-125, -125, -125, -125]</lang>



=={{header|Nim}}==
=={{header|Nim}}==