• CHANGELOG.md
• Example
• Installing
• Versions
• 22

# DartMath #

## 0.0.1 #

• Initial version, created by Stagehand

example/main.dart

``````import 'package:dart_math/dart_math.dart';

main(List<String> arguments) {
//Intantiate a Fraction Object
Fraction fractions = new Fraction(3.0, 2.0);
Fraction fractions1 = new Fraction(5.0, 4.0);
Fraction fractions2 = new Fraction(5.0, 2.0);

//get nominator,denominator, quotient,remainder;
print(
'Nominator: \${sumfrac.nominator()} Denominator \${sumfrac.denominator()}');
print('This is quotient \${sumfrac.quotient()}');
print('This is remainder \${sumfrac.remainder()}');

// //Intantiate Line Object
Line l1 = new Line(y: 1.0, gradient: 2.0, intercept: 3.0);
Line l2 = new Line(y: 1.0, gradient: -0.5, intercept: 7.0);
Line l3 = new Line(y: 1.0, gradient: 2.0, x: 1.0);

//Intanciate Cordinates Object
Cordinates p1 = new Cordinates(1.0, 1.0);
Cordinates p2 = new Cordinates(2.0, 3.0);

print('This is distance \${p1.getdistance(p2)}');
print('This is Slope \${p1.getslope(p2)}');
print('This is y intercept \${l3.getyintercept()}');

Cordinates inter;
Map<String, double> cord;
//get intersection of two lines
inter = l1.intersection(l2);
print(l1.intersection(l2).toLine(p1).intersection(l3));
cord = inter.getcordinates();
print('These Lines intersect at \$cord');
}
``````

## Use this package as a library

### 1. Depend on it

``````
dependencies:
dart_math: ^0.0.6

``````

### 2. Install it

You can install packages from the command line:

with pub:

``````
\$ pub get

``````

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

### 3. Import it

Now in your Dart code, you can use:

``````
import 'package:dart_math/dart_math.dart';
``````
0.0.9+3 Dec 26, 2018
0.0.9+2 Dec 26, 2018
0.0.9+1 Dec 26, 2018
0.0.9 Aug 25, 2018
0.0.8 Aug 25, 2018
0.0.7 Aug 23, 2018
0.0.6 Aug 21, 2018
0.0.5 Aug 21, 2018
0.0.4 Aug 21, 2018
0.0.3 Aug 21, 2018
 Popularity: Describes how popular the package is relative to other packages. [more] 35 Health: Code health derived from static analysis. [more] 0 Maintenance: Reflects how tidy and up-to-date the package is. [more] 20 Overall: Weighted score of the above. [more] 22

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

#### Platforms

Detected platforms:

Error(s) prevent platform classification:

Check SDKs in `pubspec.yaml`.

#### Analysis issues and suggestions

Fix dependencies in `pubspec.yaml`.

Running `pub upgrade` failed with the following output:

``````ERR: The current Dart SDK version is 2.3.0.

Because dart_math requires SDK version 2.0.0, version solving failed.
``````

Check SDKs in `pubspec.yaml`.

The following unknown SDKs are in `pubspec.yaml`: `{dartdoc}`.

`pana` doesnâ€™t recognize them; please remove the `sdk` entry or report the issue.

#### Health suggestions

Format `lib/circle.dart`.

Run `dartfmt` to format `lib/circle.dart`.

Format `lib/cordinates.dart`.

Run `dartfmt` to format `lib/cordinates.dart`.

Format `lib/lines.dart`.

Run `dartfmt` to format `lib/lines.dart`.

#### Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Check SDKs in `pubspec.yaml`.

Support the latest stable Dart SDK in `pubspec.yaml`. (-20 points)

The SDK constraint in `pubspec.yaml` doesn't allow the latest stable Dart SDK release.

Make sure `dartdoc` successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.

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.

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.

#### Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK 2.0.0