nt_math_utils 0.0.1 nt_math_utils: ^0.0.1 copied to clipboard
A simple math utility library
The error message indicates your README.md
file still contains the generic placeholder text. Let's update it with a proper description of your math_utils
library. Here's an example:
README.md
math_utils #
A simple and efficient library for common mathematical operations in Dart.
This library provides several commonly used mathematical functions, making it easier to perform calculations in your Dart projects.
Features:
- Calculate factorial of a non-negative integer.
- Find the greatest common divisor (GCD) of two integers.
- Calculate the least common multiple (LCM) of two integers.
Getting Started:
- Add
math_utils
as a dependency in yourpubspec.yaml
:
dependencies:
math_utils: ^1.0.4
- Get dependencies:
dart pub get
- Import the library in your Dart code:
import 'package:math_utils/math_utils.dart';
void main() {
print(MathUtils.factorial(5)); // Output: 120
print(MathUtils.gcd(12, 18)); // Output: 6
print(MathUtils.lcm(4, 6)); // Output: 12
}
Documentation:
Detailed documentation for each function is coming soon.
Contributing:
We welcome contributions to this library. Feel free to submit pull requests with bug fixes or new features.
License:
This library is licensed under the MIT License (see LICENSE file).