i 1.0.1 copy "i: ^1.0.1" to clipboard
i: ^1.0.1 copied to clipboard

A Dart library for representing and performing arithmetic operations with complex numbers.

example/i_example.dart

import 'package:i/i.dart';

void main() {
  Complex num1 = Complex(2, 3);
  Complex num2 = Complex(4, 5);

  var num = 1.r + 2;

  print(num);

  print('num1: $num1');
  print('num2: $num2');
  print('Addition: ${num1 + num2}');
  print('Subtraction: ${num1 - num2}');
  print('Multiplication: ${num1 * num2}');
  print('Division: ${num1 / num2}');
}
0
likes
160
pub points
39%
popularity

Publisher

verified publisherxooniverse.com

A Dart library for representing and performing arithmetic operations with complex numbers.

Repository (GitHub)
View/report issues

Topics

#math #complex #numbers

Documentation

API reference

License

MIT (license)

More

Packages that depend on i