Changeset 5644:6b03fe2cf6a5
- Timestamp:
- 08/12/07 12:50:17 (6 years ago)
- Branch:
- default
- Children:
- 5651:6bf4526572b2, 5753:e207e63d5ceb
- File:
-
- 1 edited
-
sage/groups/perm_gps/cubegroup.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/groups/perm_gps/cubegroup.py
r5640 r5644 805 805 806 806 def legal(self,state,mode="quiet"): 807 """807 r""" 808 808 Returns 1 (true) if the dictionary \code{state} (in the same format as 809 809 returned by the faces method) represents a legal position (or state) of … … 858 858 859 859 def solve(self,state): 860 """860 r""" 861 861 Solves the cube in the \code{state}, given as a dictionary as 862 862 in \code{legal}. This uses GAP's \code{EpimorphismFromFreeGroup} 863 863 and \code{PreImagesRepresentative}. 864 865 WARNING: This is currently evidently broken. 864 866 865 867 EXAMPLES: 866 868 sage: rubik = CubeGroup() 867 869 sage: R_state = rubik.faces("R") 868 sage : rubik.solve(R_state) ## time-consuming870 sage.: rubik.solve(R_state) # currently broken (long time) 869 871 'R' 870 872 … … 888 890 words = [b,d,f,l,r,u] 889 891 sol = leg[1].word_problem(words, False)[0] 890 #print sol891 892 sol1 = sol.replace("x1","B") 892 893 sol2 = sol1.replace("x2","D")
Note: See TracChangeset
for help on using the changeset viewer.
