complex arithmetics
Posted: Thu Sep 11, 2014 10:09 pm
Hello all,
attached there's a "library" for newlisp to perform mathematical operations with complex numbers.
Such numbers are created with a list with the format : '(re im).
I added and tested all the included functions.
I also created a library for complex matrices determinant. The matrices needs to be written in column-major order.
I borrowed the permutation code from the newlisp web site and I added the function to calculate the parity of permutation.
Please feel free to test it and comment it.
This is my first newlisp program, and I'm sure there're a lot to improve.
Regards
attached there's a "library" for newlisp to perform mathematical operations with complex numbers.
Such numbers are created with a list with the format : '(re im).
I added and tested all the included functions.
I also created a library for complex matrices determinant. The matrices needs to be written in column-major order.
I borrowed the permutation code from the newlisp web site and I added the function to calculate the parity of permutation.
Please feel free to test it and comment it.
This is my first newlisp program, and I'm sure there're a lot to improve.
Regards