Search code examples
elisp

Complex/imaginary numbers in elisp?


Does elisp support imaginary numbers is any way? I'm trying to follow an online math course with lisp interaction mode buffer running. Are there "higher math" modules/libraries for Emacs elisp?


Solution

  • Emacs includes calc, a comprehensive calculator which supports complex numbers.

    The manual is here: C-hig (calc) RET

    Other nodes of particular note are:

    • (calc) Complex Numbers
    • (calc) Complex Number Functions
    • (calc) Calling Calc from Your Programs