math_utils 🚀

Pub GitHub stars License: MIT

A mathematics utility library for Dart.

Installation

To add this package to your project, run the following command:

dart pub add samandar_package

Or add the following to your pubspec.yaml file:

dependencies:
  math_utils: ^1.0.0

Usage

import 'package:samandar_package/samandar_package.dart';

void main() {
  print(add(2, 3)); // 5
  print(subtract(7, 4)); // 3
  print(multiply(6, 8)); // 48
  print(divide(10, 2)); // 5.0
  
  print(factorial(5)); // 120
  print(average([2, 4, 6, 8])); // 5.0
}

Features

  • ➕ Addition, ➖ Subtraction, âœ–ī¸ Multiplication, ➗ Division functions
  • â„šī¸ Factorial, Average calculation
  • 📈 Advanced mathematical operations

Contributing

If you want to improve this package or add new features, follow these steps:

  1. Fork the repository and create your own branch
  2. Make your changes and commit them
  3. Submit a pull request

Libraries

samandar_package
Support for doing something awesome.