Compute x raised to the power of 3, element-wise (i.e. x³). Return the result.
x
x³
Input
[1. 2. 3. 4.]
Output
[ 1. 8. 27. 64.]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)