GeoGen Script reference

Incorrect number of arguments was passed to a function.

Script defined functions always require specific number of arguments. Native functions may have optional parameters (eg. HeightMap.Flat) or even arbitrary number of arguments (eg. Print).

function MyFunction(x, y)
return x + y;
MyFunction(1, 2, 3); // GGE2103, 2 arguments expected
var map1 = HeightMap.Flat(); // OK, the function has one optional argument
var map2 = HeightMap.Flat(0.5); // OK
var map3 = HeightMap.Flat(0.2, 2); // GGE2103