Re: [Pharo-users] A question about sets

2014-06-28 Thread p...@highoctane.be
Fun French Smalltalk. Il y a une version dispo? Phil Le 25 juin 2014 18:33, Alain Busser alain.bus...@gmail.com a écrit : About the birthday problem, I already pulished something that I had exeperimented in the classroom, but it is in French: http://irem.univ-reunion.fr/spip.php?article618

Re: [Pharo-users] A question about sets

2014-06-28 Thread Alain Busser
oui, c'est ici: http://irem.univ-reunion.fr/spip.php?rubrique140 Avec un lien de téléchargement: https://dl.dropbox.com/u/10996692/MathsOntologie.zip btw I still plan to port it to Pharo3... Alain On Sat, Jun 28, 2014 at 10:24 AM, p...@highoctane.be p...@highoctane.be wrote: Fun French

Re: [Pharo-users] A question about sets

2014-06-28 Thread Hilaire Fernandes
Steph, It could be nice to add Alain's MathsOntologie as a success story, a nice example about what you can easily do with Pharo in the education sector Hilaire Le 28/06/2014 09:17, Alain Busser a écrit : oui, c'est ici: http://irem.univ-reunion.fr/spip.php?rubrique140 Avec un lien de

Re: [Pharo-users] A question about sets

2014-06-26 Thread Hilaire Fernandes
Great! Now I wonder how it could be used within Dr. Geo. Thanks Hilaire Le 25/06/2014 18:33, Alain Busser a écrit : About the birthday problem, I already pulished something that I had exeperimented in the classroom, but it is in French: http://irem.univ-reunion.fr/spip.php?article618 (clic

Re: [Pharo-users] A question about sets

2014-06-26 Thread Alain Busser
About the use of sets I found another idea: Eratosthene's sieve. Basically you create a set containing all integers from 2 to, say, 200. Then, beginning with 2, you choose remove all multiples of the number you choose from the set. Then you go to the next number in the set and so on... The

Re: [Pharo-users] A question about sets

2014-06-25 Thread hilaire
Alain, I love very much your cultural insight and I would like to see more examples like this one applied to Dr. Geo scripting or Smalltalk sketches. Personally, I don't have the time to both develop Dr. Geo *and* to investigate such examples; contributions like yours are more than welcome.

Re: [Pharo-users] A question about sets

2014-06-25 Thread Alain Busser
About the birthday problem, I already pulished something that I had exeperimented in the classroom, but it is in French: http://irem.univ-reunion.fr/spip.php?article618 (clic on problème des anniversaires tab). The idea is that if you add say 30 times a 365 atRandom to a bag (instead of a set) it

Re: [Pharo-users] A question about sets

2014-06-15 Thread Alain Busser
Hi Fabien and welcome, you just discovered this phenomenon: http://en.wikipedia.org/wiki/Birthday_problem and you can be proud having discovered it by yourself! Alain On Sun, Jun 15, 2014 at 12:12 AM, Hilaire Fernandes hilaire.fernan...@gmail.com wrote: Hi Fabien, As other already

[Pharo-users] A question about sets

2014-06-14 Thread Fabian Boucsein
Hi there, i am new to Smalltalk and Pharo and today, while trying out some examples, i observed an somewhat strange behaviour. I used this snippet from the pharo.org website: | numbers | numbers := Set new. 10 timesRepeat: [ numbers add: 100 atRandom ]. numbers explore. Using Pharo 3.0 on my

Re: [Pharo-users] A question about sets

2014-06-14 Thread Luc Fabresse
Hi Fabian, Welcome on board ;-) Set: I represent a set of objects without duplicates. so if you have the same number multiple times, it cannot be added more than once in the Set. replace Set by Bag (I represent an unordered collection of possibly duplicate elements.) and the size will always

Re: [Pharo-users] A question about sets

2014-06-14 Thread Tim Hendriks
In sets there can be only Unique nummers. So random produced a few of the same numbers. They get excluded from the set. Tim Op 14 jun. 2014 om 11:48 heeft Fabian Boucsein fabian.boucs...@googlemail.com het volgende geschreven: Hi there, i am new to Smalltalk and Pharo and today, while

Re: [Pharo-users] A question about sets

2014-06-14 Thread Ben Coman
Fabian Boucsein wrote: Hi there, i am new to Smalltalk and Pharo and today, while trying out some examples, i observed an somewhat strange behaviour. I used this snippet from the pharo.org website: | numbers | numbers := Set new. 10 timesRepeat: [ numbers add:

Re: [Pharo-users] A question about sets

2014-06-14 Thread Hilaire Fernandes
Hi Fabien, As other already explained, you just discovered the marvelous Set collection. Hilaire Le 14/06/2014 11:48, Fabian Boucsein a écrit : i am new to Smalltalk and Pharo and today, while trying out some examples, i observed an somewhat strange behaviour. -- Dr. Geo http://drgeo.eu