Kig (software)
Encyclopedia
Kig is free and open source
interactive geometry software
, which is part of the
KDE edutainment project. It has some facilities for scripting in Python
, as well as the creating macros from existing constructions.
and Cabri Geometry
as well as its own file format, which is xml
-encoded.
Kig can export figures in LaTeX
format and as svg (vector graphics) files.
For example, if there is already a numeric object inside the figure, for example 3, the following Python object can yield its square (9):
The variables are always called arg1, arg2 etc. in the order they are clicked upon. Here there is only one variable arg1 and its numerical value is obtained with
If now one wants to implement the square of a complex number (represented by a point in the Argand diagram), the object which has to be selected at the creation of the script must necessarily be a point, and the script is
The abscissa
of the point representing the square of the complex number
is as can be seen by expanding .
But a Python object inside a figure can only create one object and for more complex figures one has to build the figure with a script:
For example, here is how a Sierpinski triangle
can be made (as an IFS
) with pykig:
External links
Free and open source software
Free and open-source software or free/libre/open-source software is software that is liberally licensed to grant users the right to use, study, change, and improve its design through the availability of its source code...
interactive geometry software
Interactive geometry software
Interactive geometry software are computer programs which allow one to create and then manipulate geometric constructions, primarily in plane geometry. In most IGS, one starts construction by putting a few points and using them to define new objects such as lines, circles or other points...
, which is part of the
KDE edutainment project. It has some facilities for scripting in Python
Python (programming language)
Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Python claims to "[combine] remarkable power with very clear syntax", and its standard library is large and comprehensive...
, as well as the creating macros from existing constructions.
Import and export
Kig can import files made by DrGeoDrGeo
DrGeo is a free software, created by Hilaire Fernandes for the Ofset. As its names suggests, it is a geometry software...
and Cabri Geometry
Cabri Geometry
Cabri Geometry is a commercial interactive geometry software produced by the French company Cabrilog for teaching and learning geometry and trigonometry. It was designed with ease-of-use in mind. The program allows the user to animate geometric figures, proving a significant advantage over those...
as well as its own file format, which is xml
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....
-encoded.
Kig can export figures in LaTeX
LaTeX
LaTeX is a document markup language and document preparation system for the TeX typesetting program. Within the typesetting system, its name is styled as . The term LaTeX refers only to the language in which documents are written, not to the editor used to write those documents. In order to...
format and as svg (vector graphics) files.
Objects
Kig can handle any classical object of the dynamic geometry, but also:- The center of curvatureCenter of curvatureIn geometry, center of curvature of a curve is found at a point that is at a distance equal to the radius of curvature lying on the normal vector. It is the point at infinity if the curvature is zero. The osculating circle to the curve is centered at the center of curvature....
and osculating circleOsculating circleIn differential geometry of curves, the osculating circle of a sufficiently smooth plane curve at a given point p on the curve has been traditionally defined as the circle passing through p and a pair of additional points on the curve infinitesimally close to p...
of a curve; - The dilationDilationDilation refers to an enlargement or expansion in bulk or extent, the opposite of contraction. It derives from the Latin dilatare, "to spread wide".In physiology:* Pupillary dilation, dilation of the pupil of the eye...
, generic affinityAffinityAffinity is a word used in a variety of fields, usually to indicate some kind of preference, relationship, or a potential or actual closeness between two entities.Articles dealing with various usages of the word: affinity include:-Commerce and law:...
, inversion, projective application, homographyHomographyHomography is a concept in the mathematical science of geometry.A homography is an invertible transformation from a projective space to itself that maps straight lines to straight lines...
and harmonic homology; - The hyperbolaHyperbolaIn mathematics a hyperbola is a curve, specifically a smooth curve that lies in a plane, which can be defined either by its geometric properties or by the kinds of equations for which it is the solution set. A hyperbola has two pieces, called connected components or branches, which are mirror...
with given asymptoteAsymptoteIn analytic geometry, an asymptote of a curve is a line such that the distance between the curve and the line approaches zero as they tend to infinity. Some sources include the requirement that the curve may not cross the line infinitely often, but this is unusual for modern authors...
s; - The BeziersBéziersBéziers is a town in Languedoc in southern France. It is a sub-prefecture of the Hérault department. Béziers hosts the famous Feria de Béziers, centred around bullfighting, every August. A million visitors are attracted to the five-day event...
curves (2nd and 3rd degree); - The polar line of a point and polePole-General:*Poles, people originating from inbitating or inhabiting the country of Poland*Pole -Fictional:*Jill Pole, a fictional character from C. S...
of a lineLine- Science and technology :* Line , a circuit or loop.** A power line for electric power transmission** line power or lines power, domestic mains electricity.** telephone line** RF transmission line...
with respect to a conic sectionConic sectionIn mathematics, a conic section is a curve obtained by intersecting a cone with a plane. In analytic geometry, a conic may be defined as a plane algebraic curve of degree 2...
; - The asymptoteAsymptoteIn analytic geometry, an asymptote of a curve is a line such that the distance between the curve and the line approaches zero as they tend to infinity. Some sources include the requirement that the curve may not cross the line infinitely often, but this is unusual for modern authors...
s of a hyperbolaHyperbolaIn mathematics a hyperbola is a curve, specifically a smooth curve that lies in a plane, which can be defined either by its geometric properties or by the kinds of equations for which it is the solution set. A hyperbola has two pieces, called connected components or branches, which are mirror...
; - The cubic curve through 9 points;
- The cubic curve with a double point through 6 points;
- The cubic curve with a cuspCuspCusp may refer to:*Beach cusps, a pointed and regular arc pattern of the shoreline at the beach*Behavioral cusp an important behavior change with far reaching consequences*Cusp catastrophe...
through 4 points.
Inside the figure
Another object is available inside Kig, it is a Python (language) script. It can accept Kig objects as variables, and always return one object.For example, if there is already a numeric object inside the figure, for example 3, the following Python object can yield its square (9):
The variables are always called arg1, arg2 etc. in the order they are clicked upon. Here there is only one variable arg1 and its numerical value is obtained with
arg1.value
.If now one wants to implement the square of a complex number (represented by a point in the Argand diagram), the object which has to be selected at the creation of the script must necessarily be a point, and the script is
The abscissa
Abscissa
In mathematics, abscissa refers to that element of an ordered pair which is plotted on the horizontal axis of a two-dimensional Cartesian coordinate system, as opposed to the ordinate...
of the point representing the square of the complex number
Complex number
A complex number is a number consisting of a real part and an imaginary part. Complex numbers extend the idea of the one-dimensional number line to the two-dimensional complex plane by using the number line for the real part and adding a vertical axis to plot the imaginary part...
is as can be seen by expanding .
Coordinate(x,y)
creates a Python list made of the two coordinates of the new point. And Point
creates the point which coordinates are precisely given by this list.But a Python object inside a figure can only create one object and for more complex figures one has to build the figure with a script:
Figure created by a script
Kig comes up with a little program (written in Python) called pikyg.py which can- load a Python script, say MyScript.py
- build a Kig figure, described by this script
- open Kig and display the figure.
For example, here is how a Sierpinski triangle
Sierpinski triangle
The Sierpinski triangle , also called the Sierpinski gasket or the Sierpinski Sieve, is a fractal and attractive fixed set named after the Polish mathematician Wacław Sierpiński who described it in 1915. However, similar patterns appear already in the 13th-century Cosmati mosaics in the cathedral...
can be made (as an IFS
Iterated function system
In mathematics, iterated function systems or IFSs are a method of constructing fractals; the resulting constructions are always self-similar....
) with pykig:
External links