Affichage des articles dont le libellé est Smalltalk. Afficher tous les articles
Affichage des articles dont le libellé est Smalltalk. Afficher tous les articles

dimanche 28 janvier 2024

Programmer avec Dr. Geo 23.12

 J'ai pris mon courage à deux mains et fait une importante mise à jour du livre Programmer avec Dr. Geo. Il correspond maintenant à la version 23.12 de Dr. Geo. L'ensemble des exemples doivent fonctionner avec cette version, notamment les méthodes accentuées en français.

Ne pas hésiter à rapporter les erreurs rencontrées.

samedi 21 octobre 2023

Programmer Géométrie - Leçon 2

 Dans cette activité tu vas construire des rectangles et apprendre à utiliser une variable en programmation.

Programmer Géométrie - Leçon 1

Tu vas apprendre à programmer, coder, des figures géométriques. Elles seront interactives : tu pourras attraper à la souris les points et les lignes pour modifier son aspect. Le programme utilisé s’appelle Dr. Geo. Dans ce premier cours, tu vas coder des triangles interactifs.

jeudi 17 février 2022

The Cuis Book

This free book is a gentle introduction to programming with Cuis-Smalltalk. The reader without prior-knowledge to programming will learn about object oriented programming, the Smalltalk environment and its language.

The book comes with a recurring theme : writing a free inspired replica of the first video-game ever created: Spacewar!


dimanche 30 juin 2019

The Newton-Raphson Method

The Newton-Raphson method is a very efficient algorithm to search for the zero of a real function. Most of the time it converges more quickly than a dichotomy approach. Nevertheless, there are some traps to avoid by studying the function and/or its curve.

lundi 3 juin 2019

La méthode de Newton-Raphson

La méthode de Newton-Raphson est un procédé très efficace dans la recherche du zéro d’une fonction réelle, sa convergence est généralement bien plus rapide que celle de la méthode dichotomique. Elle comporte cependant des chausse-trappes qu’une étude de la fonction et de sa courbe permettent d’éviter.

samedi 12 janvier 2019

Dynabook, user interface point of view

In our previous writings, we took the point of view of said innovative teaching approaches. It differs from the children's point of view historically taken by A. Kay. This provided us a set of general features, curriculum neutral, we may want for a teacher centered Dynabook; we summarize it in our "Dynabook and learning models, final words" writing.

mercredi 18 juillet 2018

The Dynabook Concept



Dynabook concept, A Personal Computer for Children of All Ages[1], [2], is to provide to learners a computing service to facilitate children learning the world by constructing it via an interactive graphical interface..

vendredi 6 juillet 2018

Dr. Geo and Dynamic Media

Alan Kay coined the term Dynabook, the expressions Dynamic media and Active Essays. How does Dr. Geo connects to the underneath concepts behind these words? This is what we explain in the following paragraphs.

mercredi 4 janvier 2017

Cercle inscrit

Dans un article précédent, nous montrions comment écrire une description textuelle du cercle circonscrit à un triangle. Cette fois-ci nous expliquons comment écrire une description textuelle du cercle inscrit à un triangle Cette description sera toujours en français, et légèrement plus complexe.

mardi 3 janvier 2017

Mathematics series

My son came to me with a mathematics series, he needs to find its convergence. After the mathematics work is done, we want to confirm by calculus the found limit. Dr. Geo can be of some help here.
The series is S = Sum 1 / (k * (k + 1) * (k + 2)).
Once cut in three parts it is established it converges toward 1/4.

Then we fired up Dr. Geo to compute a few ten of thousand terms and its sum.
In a Workspace we wrote this tiny script:

| u s |
u := [ :k| 1 / (k * (k + 1) * (k + 2) ) ].
s := 0.
1 to: 100000 do: [ :k | s := s + (u value: k) ].
Transcript show: s; tab; show: s asFloat; cr

...and we got the confirmation of our finding:

(1250037500/5000150001) 0.2499999999500015

What is interesting is the exact result Pharo gave us as a fraction number. That's why we also asked for a float version of the sum to more easily realize how close we were to 1/4.

samedi 31 décembre 2016

Cercle circonscrit

Comment écrire une description textuelle du cercle circonscrit à un triangle

Avec le logiciel Dr. Geo, il est possible d'écrire un code source en français décrivant n'importe quelle figure. Ecrire une telle description pour le cercle circonscrit d'un triangle est assez simple et court comme expliqué dans les paragraphes suivants.

Circumscribed circle

How to write a textual description of a circumscribed circle to a triangle?

With Dr. Geo software, you can write source code describing any sketch. Writing a description of the circumscribed circle to a triangle is pretty simple and short as explained in the following paragraphs.

samedi 12 mars 2016

Tiny, yet so beautiful

 How do you introduce an unknown, alternative programming language to other developers ? One way to do so is by showing lots of small examples. That is what we did in Elegant Pharo Code — Beautiful & Powerful One-liners, Expressions and Snippets.

Sven Van Caekenberghe wrote a very nice article exposing the strong features of Pharo. How this programming language and environment let you solve problem very elegantly. Pharo is the environment used for Dr. Geo
Read Sven's article

jeudi 10 mars 2016

Fibonacci spiral

The Fibonacci spiral is based on the Fibonacci sequence to construct a curve forming a spiral. This spiral and some variants appear in the constructions of live entities. In this article we present a computed, interactive version of this spiral with the help of Dr. Geo, an interactive geometry and programming application. Later we discuss on the interest of this approach in mathematics secondary teaching.

mardi 23 février 2016

La spirale de Fibonacci

La spirale de Fibonacci s'appuie sur la suite éponyme pour la construction d'une courbe en forme de spirale, cette spirale et ses variantes apparaissent dans des constructions du vivant. Dans cet article nous proposons une construction calculée d'une forme interactive de cette courbe, à l'aide de Dr. Geo, logiciel de géométrie interactive et de programmation. Nous relaterons ensuite les liens à faire avec les programmes d'enseignement secondaire de mathématiques.

samedi 17 octobre 2015

Programmation récursive

Aborder la récursivité n'est pas aisé pour les néophytes. Voici une approche pas à pas de la construction du triangle de Sierpinski pour appréhender sa dimension auto-répétée.

samedi 26 septembre 2015

Termes d'une suite

On continue avec les suites ou comment afficher les termes d'une suite qui est chaotique pour certaines valeurs de son paramètre.

samedi 5 septembre 2015

Diagramme de suite récurrente

Vous avez sans doute tous ce souvenir de classe de terminale, des suites récurrentes, avec recherche d'un point fixe d'une fonction. Dr. Geo permet d'explorer ce sujet.

mercredi 14 août 2013

Animated Teodoro spiral

A classic example to construct the sequence of the square roots of the first integer numbers.
The Pharo sketch constructs a sequence of right triangles. The hypotenuses are the square roots.
| figure triangle |
figure := DrGeoSketch new fullscreen.
triangle := [:p1 :p2 :p3 :n | 
   |s1 s2 s3 perp cercle p4 |
   s1 := figure segment: p1 to: p2.
   s2 := (figure segment: p2 to: p3) color: Color red.
   s3 := figure segment: p3 to: p1.
   perp := (figure perpendicular: s3 at: p3) hide.
   cercle := (figure circleCenter: p3 to: p2) hide.
   p4 := (figure altIntersectionOf: cercle and:  perp) hide.
   n > 0 ifTrue:
      [triangle value: p1 value: p3 value: p4 value: n -1]
].
triangle 
   value: 0@0
   value: -1@0
   value: -1@1
   value: 50
An animated variation of this sketch: