b-p-1-norm
▸ function bP1Norm
(p: bigint[]): bigint
Defined in norm/bigint/b-p-1-norm.ts:12
Returns the p-1 norm, a.k.a. Taxicab norm, i.e. the sum of the absolute
values of the given array of bigints.
- if the array of bigints represent polynomial coefficients then the p-1
norm is known as the
lengthof the polynomial
Parameters:
| Name | Type | Description |
|---|---|---|
p | bigint[] | an array of bigints |
Returns: bigint