Once upon a time I received such a request from one of the KOL users: to help in writing a set of functions for more convenient work with complex mathematics. If possible, I granted the request, and as a result, the Cplxmath module appeared. In fact, this is an add-on over the komath module, with a description of mathematical operations on complex numbers, represented by a pair of floating point numbers. The Complex type is described as
Complex = record Re, Im: double end;
Of course, writing code that converts mathematical operations into function calls makes the code significantly less readable than using operators, so using the free pascal compiler (in which the class of complex numbers is already implemented through operator redefinition) to work with complex arithmetic will be more productive.
The Cplxmath module is in thehttps://www.artwerp.be/kol/kol-mck-master_3.23.zip archive, along with the err and kolmath modules.