Cyclotomic polynomial: Difference between revisions
m
→{{header|J}}
(J: add some comments) |
m (→{{header|J}}) |
||
Line 2,072:
* an even base cyclotomic polynomial is the same as the corresponding odd base cyclotomic polynomial except with x replaced by negative x. (that's the <tt>(* 1 _1 $~ #)</tt> phrase in the implementation.
* To deal with the general case, we use polynomial division, x<sup>n</sup>-1 divided by the polynomial product the cyclotomic polynomials of the proper divisors of number we're looking for.
* <tt>+//.@(*/)</tt> is polynomial product in J.
Task examples:
|