Crates.io | ccomplex |
lib.rs | ccomplex |
version | 0.1.0 |
source | src |
created_at | 2017-04-21 11:18:52.668757 |
updated_at | 2017-08-02 14:52:22.704919 |
description | Easy to use complex numbers |
homepage | |
repository | https://github.com/Malmz/ccomplex-rs |
max_upload_size | |
id | 11422 |
size | 7,673 |
A easy to use library for complex numbers.
CComplex makes complex calculations easy to type.
extern crate ccomplex;
use ccomplex::iprimitive::I;
let z = 5.0 + I(4.0) / 5.0 - I(6.0) * 4.0;
println!("{}", z);
Prints: 5-23.2i