Or login with:
| intsign( | int | n | |
| int* | p | ) |
#include <codecogs/maths/combinatorics/permutations/sign.h> #include <iostream> int main() { int alpha[5] = {4, 3, 5, 1, 2}; std::cout << "The sign of the Alpha permutation is: "; std::cout << Maths::Combinatorics::Permutations::sign(5, alpha) << std::endl; return 0; }
The sign of the Alpha permutation is: -1| n | the size of the permutation |
| p | the actual permutation stored as an array |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge