Premium problem92. Cube Each Element

Hard Locked

Compute x raised to the power of 3, element-wise (i.e. x³). Return the result.

Input

[1. 2. 3. 4.]

Output

[ 1.  8. 27. 64.]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)