complex 0.5.0

  • Readme
  • Changelog
  • Installing
  • 73

Complex #

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

Translated from The Apache Commons Mathematics Library into Dart.

0.5.0 #

  • Compatible with Dart 2

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  complex: ^0.5.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:complex/complex.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Health suggestions

Fix lib/src/tables.dart. (-2.96 points)

Analysis of lib/src/tables.dart reported 6 hints, including:

line 7 col 22: Avoid const keyword.

line 25 col 22: Avoid const keyword.

line 43 col 24: Avoid const keyword.

line 61 col 24: Avoid const keyword.

line 79 col 25: Avoid const keyword.

Fix lib/src/complex.dart. (-2.48 points)

Analysis of lib/src/complex.dart reported 5 hints:

line 39 col 20: Avoid const keyword.

line 42 col 22: Avoid const keyword.

line 45 col 27: Avoid const keyword.

line 48 col 22: Avoid const keyword.

line 51 col 23: Avoid const keyword.

Fix lib/src/literals.dart. (-1.99 points)

Analysis of lib/src/literals.dart reported 4 hints:

line 8 col 25: Avoid const keyword.

line 1513 col 25: Avoid const keyword.

line 3019 col 26: Avoid const keyword.

line 4049 col 26: Avoid const keyword.

Fix lib/src/fastmath.dart. (-1 points)

Analysis of lib/src/fastmath.dart reported 2 hints:

line 34 col 17: Avoid const keyword.

line 123 col 43: Don't explicitly initialize variables to null.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and complex.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is getting outdated. (-8.49 points)

The package was last published 56 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
test ^1.6.4