complex-plane

Crates.iocomplex-plane
lib.rscomplex-plane
version0.1.0
sourcesrc
created_at2022-09-25 00:11:55.806434
updated_at2022-09-25 00:11:55.806434
descriptionSimple implementation of complex numbers and their associated operations in the complex plane.
homepagehttps://github.com/jpbochicchio/complex-plane.git
repositoryhttps://github.com/jpbochicchio/complex-plane.git
max_upload_size
id673320
size7,870
John Bochicchio (jpbochicchio)

documentation

https://github.com/jpbochicchio/complex-plane/

README

Basic Outline

This is a simple implementation of numbers in the complex plane. Includes addition, subtraction, and multiplication. The main module is complex_numbers, and the actual implementation of a complex number is defined within under Complex.

Complex numbers are defined generically, and can be initialized with any type satisfying:

impl<T> Complex<T> 
where T: Add<Output = T> + Mul<Output = T> + 
Sub<Output = T> + Clone + 
Default

The Complex implementation directly implements the above, so you can use the common operators +, -, * to work with them.

Commit count: 11

cargo fmt