Category:Mini-complex
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.
Mini-complex is a module which adds complex number support to the MiniScript programming language. It consists of two constructors and 34 methods.
Miniscript does not support operator overloading for user defined types so functions are used for all basic operations.
complex objects are designed to be immutable and always be expressed as a real part and an imaginary part, or by default x ± yi in string form.
It has been written so as to require no dependencies other than the intrinsic functions built into MiniScript itself.
To use it all you need to do is to copy the source code (in the talk page) to a text file called complex.ms within a directory (preferably the same directory as the importing script) where the MiniScript executable can find it.
Documentation for each function and examples of use are also included in the talk page.
Pages in category "Mini-complex"
This category contains only the following page.