rcomplex 0.1.2

A simple class for manipulating complex numbers. This project is mainly for educational purposes, and I reccomend using other more complete packages for complex math.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate rcomplex;
use rcomplex::complex::Complex;


fn main() {
    println!("Hello, world!");

    let c1 = Complex::new(1.0, 5.0);
    let c2 = Complex::new(3.0, 2.0);
	let var = c1 * c2;
    println!("real = {}, img = {}", var.real, var.img);
    let pol = var.to_polar();

    println!("r = {}, theta = {}", pol.r, pol.theta);
	
}