Le lundi 25 novembre 2013 01:02:39 UTC+1, Volker Braun a écrit :
>
>
> Note that there is no need to repeat the 'x, y' labels here if you adjust 
> the argspec for U.chart a bit. The point of the R.<x> syntax is that the 
> coordinate names are supplied as strings as well as assigned to variables:
>
> sage: preparse("stereoN.<x,y> = U.chart('stereoN')")
> "stereoN = U.chart('stereoN', names=('x', 'y',)); (x, y,) = 
> stereoN._first_ngens(2)"
>
>
>
Yes, indeed ! Actually, we maintained the coordinate string in the chart() 
arguments because, in more general cases, it was our way to pass also the 
coordinate ranges (by default (-oo,+oo)) and the LaTeX symbols of the 
coordinates. For instance, we can have:

sage: polar.<th,ph> = U.chart(r'th:(0,pi):\theta ph:(0,2*pi):\phi', 'polar')

Using the full power of <> syntax as you suggest, we could modify this to

sage: polar.<th,ph> = U.chart('polar', ranges=[(0,pi), (0,2*pi)], 
latex_symbols=r'\theta \phi')

The question is then: which of the two writings is the more user friendly ?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to