invmoves-
inversion of a move of a Rubik's like puzzle
Calling Sequence:
invmoves(a)
Parameters:
a - a list,
a name or 1
Description:
-
The function invmoves inverses the
move of a Rubik's like puzzle. For the names of the rudimental moves see
the functions jl
, mb
, mx
, px
, rc2
, rc3
, rc4
, rc5
or sb
of the corresponding puzzles jewel, masterball, megaminx, pyraminx, Rubik's
2x2 cube, Rubik's 3x3 cube, Rubik's 4x4 cube, Rubik's 5x5 cube or skewb.
-
The input is either a list containing
of the moves, a move or the identity 1.
-
Output of the function is either a
list containing the moves, a move or the identity 1. The output is simplified
by the command simpmoves.
-
The command with(rubik,invmoves) allows
the use of the abbreviated form of this command.
Examples:
> restart:
> with(rubik):
> X:=[R,L,1/D];
> invmoves(X);
See Also:
mulmoves,
simpmoves