Permutation.rmul_with_af(): rmul_with_af() es una función de biblioteca de Python que devuelve el producto de la permutación, pero los elementos de los argumentos son objetos de permutación que tienen forma de array.
Sintaxis: sympy.combinatorics.permutations.Permutation.rmul_with_af()
Retorno: producto de la permutación.
Código #1: rmul_with_af() Ejemplo
# Python code explaining # SymPy.Permutation.rmul_with_af() # importing SymPy libraries from sympy.combinatorics.partitions import Partition from sympy.combinatorics.permutations import Permutation # Using from sympy.combinatorics.permutations.Permutation.rmul_with_af() method # creating Permutation a = Permutation([[2, 0], [3, 1]]) b = Permutation([1, 3, 5, 4, 2, 0]) print ("Permutation a - rmul_with_af form : ", a.rmul_with_af(b)) print ("Permutation b - rmul_with_af form : ", b.rmul_with_af(a))
Producción :
Permutación a – forma rmul_with_af: (0 1 3 4 2 5)
Permutación b – forma rmul_with_af: (0 2)(1 3)
Código #2: rmul_with_af() Ejemplo
# Python code explaining # SymPy.Permutation.rmul_with_af() # importing SymPy libraries from sympy.combinatorics.partitions import Partition from sympy.combinatorics.permutations import Permutation # Using from # sympy.combinatorics.permutations.Permutation.rmul_with_af() method # creating Permutation a = Permutation([[2, 4, 0], [3, 1, 2], [1, 5, 6]]) print ("Permutation a - rmul_with_af form : ", a.rmul_with_af(a))
Producción :
Permutación a – forma rmul_with_af: (0 3 5 6 1 2 4)
Publicación traducida automáticamente
Artículo escrito por noobestars101 y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA