[sage-devel] Re: Issue with quick start

2017-12-05 Thread kcrisman


> Mind you, some components of Sage have versions of the same command in two 
> different English spellings, e.g. GAP has Center() and Centre().
>
> I propose switching to a language with a consistent meaningful spelling, 
> not all that impossible to understand arbitrary multiple choices. I will 
> open a trac ticket changing Math* to Wiskunde. At least there is no 
> potato-in-your-mouth phoneme there!
>
>
>
Hey, just because nobody ELSE can pronounce theta doesn't mean 
English/Icelandic/https://en.wikipedia.org/wiki/Voiceless_dental_fricative#Occurrence
 
shouldn't get them ;-)  Just try ordering a beer in Madrid without it! 

As to the serious comment DC makes about technical writing, while this is 
true, SageMath has always faced (shall we say) a lack of volunteer 
willingness for such things in comparison to bug fixes etc., similarly to 
many open source projects.  I would recommend the practical step of 
submitting a pull request to the website github site I referenced earlier 
with that very small change (my option 2) and see if Harald accepts it - I 
don't really see why not, as it's so isolated.

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: [min_spanning_tree] It is not operating correctly

2017-12-05 Thread David . Coudert
The issue is that the graph is not seen as weigthed by default. So either 
you provide a weight function, or you have to set the graph has weigthed. 
Then you get what you expect.

sage: G = Graph([(0,1,78), (0,2,99), (0,5,20), (1,3,16), (1,6,68), (1,7,34), 
(2,4,43), (2,5,13), (3,4,70), (3,7,2), (4,5,76), (4,7,77), (5,7,31), (6,7,74
)]) 
sage: G.weighted()
False
sage: E = G.min_spanning_tree()
sage: print(sum(e[2] for e in E), E)
(391, [(0, 1, 78), (0, 2, 99), (0, 5, 20), (1, 3, 16), (1, 6, 68), (1, 7, 34
), (4, 5, 76)])
sage: E = G.min_spanning_tree(weight_function=lambda e:e[2])
sage: print(sum(e[2] for e in E), E)
(193, [(0, 5, 20), (1, 3, 16), (1, 6, 68), (2, 4, 43), (2, 5, 13), (3, 7, 2
), (5, 7, 31)])
sage: G.weighted()
False
sage: G.weighted(True)
sage: G.weighted()
True
sage: E = G.min_spanning_tree()
sage: print(sum(e[2] for e in E), E)
(193, [(0, 5, 20), (1, 3, 16), (1, 6, 68), (2, 4, 43), (2, 5, 13), (3, 7, 2
), (5, 7, 31)])




Le mardi 5 décembre 2017 02:38:39 UTC+1, fco...@uea.edu.br a écrit :
>
> Hello.
>
> Apparently, min_spanning_tree is not operating properly (see 
> printscreens). Manually, the result is 193. I tried several algorithms and 
> the error persists. Or am I wrong?
>
> Regards,
> Flávio.
>
>

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Issue with quick start

2017-12-05 Thread Jori Mäntysalo

On Mon, 4 Dec 2017, Dima Pasechnik wrote:

Mind you, some components of Sage have versions of the same command in 
two different English spellings, e.g. GAP has Center() and Centre().


But the Sage source code itseself contains only one "centre", in 
documentation of src/sage/groups/perm_gps/permgroup_named.py.


I would like to see only one spelling, i.e. no color and colour etc, but 
that has been discussed earlier without ending to a common view.


--
Jori Mäntysalo