
Teaching and Learning Mathematics Using GeoGebra: Python Coding Mathematics
Description
Book Introduction
Kyungsik Choi's 『Teaching and Learning Mathematics Using GeoGebra: Python Coding Mathematics』 is a book that contains basic and comprehensive contents about using GeoGebra Python, including 〈Chapter 1 GeoGebra Python〉, 〈Chapter 2 GeoGebra Python Commands〉, 〈Chapter 3 Time Control〉, 〈Chapter 4 Event Control〉, 〈Chapter 5 Monte Carlo Method〉, 〈Chapter 6 Fractal Structure〉, 〈Chapter 7 Properties of Integers〉, and 〈Chapter 8 Graphs of Functions〉.
index
iii Chapter 1 GeoGebra Python 1
1.1 Introduction to the GeoGebra Python environment.
. .
. .
. .
. .
. .
. .
. .
. .
. .
1
1.2 Open the example file.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 2
1.3 Saving coding content.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 3
Chapter 2 GeoGebra Python Commands 5
2.1 Format of data.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 5
2.1.1 Numbers: int and float types.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 5
2.1.2 String: string type.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
5
2.2 Basic operations.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
6
2.2.1 Variables.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 6
2.2.2 Operators.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
7
2.2.3 List .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
7
2.3 for loop.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
10
2.3.1 for i in list (or string) .
. .
. .
. .
. .
. .
. .
. .
. .
10
2.3.2 for i in range(n 1, n 2, n 3) .
. .
. .
. .
. .
. .
. .
. .
. .
10
2.4 if conditional statement.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
11
2.4.1 if-else .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
11
2.4.2 if-elif-else .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
12
2.5 while loop.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
12
2.6 Functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 13
2.6.1 Definition of functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 13
2.6.2 Definition of recursive functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 14
2.7 GeoGebra Python Commands.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 14
2.7.1 points.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
14
2.7.2 Line segments.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 14
2.7.3 Straight line.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.4 Distance.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.5 Vectors .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.6 Polygons.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
15
2.7.7 won.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
15
2.7.8 Rotation.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.9 Slider .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
15
2.7.10 Parabola.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
16
2.7.11 Intersection .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 16
2.7.12 Event.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
16
2.8 Library .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.1 hours.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.2 Random .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.3 Mathematics.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.4 GeoGebra.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
Chapter 3 Time Control 19
3.1 Drawing concentric circles.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
19
3.2 String Art.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 20
Chapter 4 Event Control 23
4.1 Slider Control.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
23
4.1.1 Slider Definition.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
23
4.1.2 Rotation of points.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
23
4.1.3 Definition of regular polygon construction.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 24
4.1.4 Slider Event Detection.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 25
4.2 Event control of points.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
27
Chapter 5 Monte Carlo Methods 31
5.1 Random numbers.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 31
5.2 Rolling the Dice.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
32
5.3 Area of a circle.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
34
5.4 Finding Pi.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
37
5.4.1 Finding the perimeter of a polygon.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 37
5.4.2 Finding pi using the Monte Carlo method.
. .
. .
. .
. .
. .
. .
39
Chapter 6 Fractal Structures 41
6.1 Barnsley's Bracken.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
41
6.2 Sierpinski's triangle.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
44
6.3 Koch's snowflake.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
45
6.4 Sierpinski triangle 2 .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
48
6.5 Sierpinski square.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 50
Chapter 7 Properties of Integers 53
7.1 Finding perfect numbers.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 53
7.2 Determining prime numbers.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
54
7.2.1 How are prime numbers distinguished?
. .
. .
. .
. .
. .
. .
. .
. .
54
7.3 Euclidean algorithm.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
55
7.4 Fermat's Last Theorem.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 56
7.5 Hail sequence.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
57
Chapter 8 Graphs of Functions 61
8.1 Polynomial functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
61
8.2 Rational functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
62
8.3 Irrational functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
63
8.4 Application of polar coordinates.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
64
8.5 Golden Spiral.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
65
8.6 Modeling the free fall of a ball.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 67
1.1 Introduction to the GeoGebra Python environment.
. .
. .
. .
. .
. .
. .
. .
. .
. .
1
1.2 Open the example file.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 2
1.3 Saving coding content.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 3
Chapter 2 GeoGebra Python Commands 5
2.1 Format of data.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 5
2.1.1 Numbers: int and float types.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 5
2.1.2 String: string type.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
5
2.2 Basic operations.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
6
2.2.1 Variables.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 6
2.2.2 Operators.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
7
2.2.3 List .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
7
2.3 for loop.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
10
2.3.1 for i in list (or string) .
. .
. .
. .
. .
. .
. .
. .
. .
10
2.3.2 for i in range(n 1, n 2, n 3) .
. .
. .
. .
. .
. .
. .
. .
. .
10
2.4 if conditional statement.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
11
2.4.1 if-else .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
11
2.4.2 if-elif-else .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
12
2.5 while loop.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
12
2.6 Functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 13
2.6.1 Definition of functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 13
2.6.2 Definition of recursive functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 14
2.7 GeoGebra Python Commands.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 14
2.7.1 points.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
14
2.7.2 Line segments.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 14
2.7.3 Straight line.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.4 Distance.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.5 Vectors .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.6 Polygons.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
15
2.7.7 won.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
15
2.7.8 Rotation.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 15
2.7.9 Slider .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
15
2.7.10 Parabola.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
16
2.7.11 Intersection .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 16
2.7.12 Event.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
16
2.8 Library .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.1 hours.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.2 Random .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.3 Mathematics.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
2.8.4 GeoGebra.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 17
Chapter 3 Time Control 19
3.1 Drawing concentric circles.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
19
3.2 String Art.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 20
Chapter 4 Event Control 23
4.1 Slider Control.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
23
4.1.1 Slider Definition.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
23
4.1.2 Rotation of points.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
23
4.1.3 Definition of regular polygon construction.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 24
4.1.4 Slider Event Detection.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 25
4.2 Event control of points.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
27
Chapter 5 Monte Carlo Methods 31
5.1 Random numbers.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 31
5.2 Rolling the Dice.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
32
5.3 Area of a circle.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
34
5.4 Finding Pi.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
37
5.4.1 Finding the perimeter of a polygon.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 37
5.4.2 Finding pi using the Monte Carlo method.
. .
. .
. .
. .
. .
. .
39
Chapter 6 Fractal Structures 41
6.1 Barnsley's Bracken.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
41
6.2 Sierpinski's triangle.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
44
6.3 Koch's snowflake.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
45
6.4 Sierpinski triangle 2 .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
48
6.5 Sierpinski square.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 50
Chapter 7 Properties of Integers 53
7.1 Finding perfect numbers.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 53
7.2 Determining prime numbers.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
54
7.2.1 How are prime numbers distinguished?
. .
. .
. .
. .
. .
. .
. .
. .
54
7.3 Euclidean algorithm.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
55
7.4 Fermat's Last Theorem.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 56
7.5 Hail sequence.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
57
Chapter 8 Graphs of Functions 61
8.1 Polynomial functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
61
8.2 Rational functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
62
8.3 Irrational functions.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
63
8.4 Application of polar coordinates.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
64
8.5 Golden Spiral.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
65
8.6 Modeling the free fall of a ball.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. 67
GOODS SPECIFICS
- Date of issue: February 1, 2025
- Page count, weight, size: 80 pages | 188*257*15mm
- ISBN13: 9791194145172
- ISBN10: 1194145175
You may also like
카테고리
korean
korean