complex 0.7.2 icon indicating copy to clipboard operation
complex: ^0.7.2 copied to clipboard

A representation of a complex number, i.e. a number which has both a real and imaginary part.

example/main.dart

import 'package:complex/complex.dart';

void main() {
  const z1 = Complex(1);
  const z2 = Complex(3, 4);

  print(z1.abs()); // 1.0
  print(z2.abs()); // 5.0
  print(z2.conjugate()); // (3.0, -4.0)
}
8
likes
130
pub points
79%
popularity

Publisher

unverified uploader

A representation of a complex number, i.e. a number which has both a real and imaginary part.

Homepage

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

More

Packages that depend on complex