dart_numerics 0.0.3

  • README.md
  • Installing
  • Versions
  • 42

dart-numerics #

dart-numerics is an ultimate mathematical package inspired by .NET analogue, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.

Usage #

A simple usage example:

import 'package:dart_numerics/dart_numerics.dart' as numerics;

main() {
  print(numerics.acosh(numerics.pi / 2));

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0.0.3 #

  • Simple regression functions.
  • Basic Least-Squares Curve Fitting Routines.

0.0.2 #

  • Euclid-related functions.
  • Permutation class implemented permutation logic.

0.0.1 #

  • Various constants.
  • Naive common logarithm implementation (log10).
  • Basic precision functions.
  • Functions for equality and comparison.
  • Trigonometry functions.

Use this package as a library

1. Depend on it

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

  dart_numerics: ^0.0.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:dart_numerics/dart_numerics.dart';
Version Uploaded Documentation Archive
0.0.5 Nov 9, 2018 Go to the documentation of dart_numerics 0.0.5 Download dart_numerics 0.0.5 archive
0.0.4 Nov 7, 2018 Go to the documentation of dart_numerics 0.0.4 Download dart_numerics 0.0.4 archive
0.0.3 Nov 5, 2018 Go to the documentation of dart_numerics 0.0.3 Download dart_numerics 0.0.3 archive
0.0.2 Nov 5, 2018 Go to the documentation of dart_numerics 0.0.2 Download dart_numerics 0.0.2 archive
0.0.2-hotfix Nov 5, 2018 Go to the documentation of dart_numerics 0.0.2-hotfix Download dart_numerics 0.0.2-hotfix archive
0.0.2-SNAPSHOT Nov 5, 2018 Go to the documentation of dart_numerics 0.0.2-SNAPSHOT Download dart_numerics 0.0.2-SNAPSHOT archive
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 May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.0
  • pana: 0.12.15


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:dart_numerics/dart_numerics.dart.

Health suggestions

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

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

line 103 col 7: Use isEmpty instead of length

line 131 col 7: Use isEmpty instead of length

Format lib/src/constants.dart.

Run dartfmt to format lib/src/constants.dart.

Format lib/src/error_messages.dart.

Run dartfmt to format lib/src/error_messages.dart.

Format lib/src/linear_regression/simple_regression.dart.

Run dartfmt to format lib/src/linear_regression/simple_regression.dart.

Format lib/src/utils.dart.

Run dartfmt to format lib/src/utils.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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 dart_numerics.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
tuple ^1.0.2 1.0.2
Transitive dependencies
matcher 0.12.5
meta 1.1.7
path 1.6.2
quiver 2.0.3
stack_trace 1.9.3
Dev dependencies
test ^1.0.0