-
-
Notifications
You must be signed in to change notification settings - Fork 673
Closed
Description
Nice mathematical objects can be obtained when projecting appropriately a discrete path (Rauzy fractals for instance).
This patch introduces 3 projection functions for word path. It also adds 2 functions to WordMorphism
and 2 matrix rotation functions to sage/matrix/constructor.py
.
The first 1000 points of the Rauzy fractal :
sage: s = WordMorphism('1->12,2->13,3->1')
sage: D = s.fixed_point('1')
sage: v = s.pisot_vector()
sage: P = WordPaths('123',[(1,0,0),(0,1,0),(0,0,1)])
sage: w = P(D[:1000])
sage: w.projected_plot(v)
See more examples in doctests.
CC: @sagetrac-abmasse @videlec @robertwb @sagetrac-tjolivet @sagetrac-tmonteil
Component: combinatorics
Author: Sébastien Labbé
Reviewer: Franco Saliola, Timo Jolivet
Merged: sage-4.7.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/8670