complex-plane 0.1.0

Simple implementation of complex numbers and their associated operations in the complex plane.
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 4 items with examples
  • Size
  • Source code size: 7.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.56 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • jpbochicchio/complex-plane
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jpbochicchio

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.