Cube (algebra) the last two digits, "any" pair of digits with the last digit odd can be a perfect cube. With even cubes, there is considerable restriction, for only 00, 2, 4, 6 and 8 can be the last two digits of a perfect cube (where stands for any odd digit and for any even digit). Some cube numbers are also square numbers; for example, 64 is a square number and a cube number . This happens if and only if the number is a perfect sixth power (in this case 2). The last digits of each 3rd power are: It is,
Cube root can be done with a compass-and-straightedge construction. Newton's method is an iterative method that can be used to calculate the cube root. For real floating-point numbers this method reduces to the following iterative algorithm to produce successively better approximations of the cube root of "a": The method is simply averaging three factors chosen such that at each iteration. Halley's method improves upon this with an algorithm that converges more quickly with each step, albeit consuming more multiplication operations: With either method a poor initial approximation of "x" can give very poor algorithm performance, and coming up with a good initial