*** Welcome to piglix ***

Kig (software)

Kig
Kig icon.svg
Kig-screenshot.png
Developer(s) KDE
Initial release 2 August 2006 (2006-08-02)
Stable release
1.0
Repository anongit.kde.org/kig.git
Written in C++ (Qt)
Operating system Unix-like, Mac OS X, Windows
Type Interactive geometry software
License GPL
Website edu.kde.org/kig/kig.git

Kig is free and open-source interactive geometry software, which is part of the KDE Education Project. It has some facilities for scripting in Python, as well as the creating macros from existing constructions.

Kig can import files made by DrGeo 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.

Kig can handle any classical object of the dynamic geometry, but also:

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 of the point representing the square of the complex number 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.


...
Wikipedia

...