[sympy] Re: How do I get variables sorted?

2019-10-14 Thread Rick Richardson
On Monday, October 14, 2019 at 11:17:14 AM UTC-5, Chris Smith wrote: > > > You could also turn that dict into an ordered list with `ans = > list(ordered(ans.items()))`. > > Thanks! print list(ordered(ans.items())) did the trick. $ geo-algebraic-expressions -i a=1 a+b=17 a+e=20 b+c=19 b+f=22

[sympy] How do I get variables sorted?

2019-10-13 Thread Rick Richardson
For example: >>> a,b,e,c,f,d,g,h,i,j,k,l,m,n,o,p = symbols("a b e c f d g h i j k l m n o p ", integer=True) >>> print