math_package_by_ziyodulla 1.0.2 copy "math_package_by_ziyodulla: ^1.0.2" to clipboard
math_package_by_ziyodulla: ^1.0.2 copied to clipboard

A useful Dart library for mathematical operations, providing a wide range of functions and utilities to perform complex calculations.

example/lib/math_package_by_ziyodulla_example.dart

import '../lib/math_package_by_ziyodulla.dart';

void main() {
  print(add(5, 3)); // Output: 8
  print(subtract(10, 4)); // Output: 6
  print(multiply(7, 2)); // Output: 14
  print(divide(8, 2)); // Output: 4.0

  print(factorial(5)); // Output: 120
  print(average([2, 4, 6, 8])); // Output: 5.0

  print(toDegrees(3.1416)); // Output: ~180.0
  print(toRadians(180)); // Output: ~3.1416
  print(toModFind(12, 5)); // Output 2
}
2
likes
160
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A useful Dart library for mathematical operations, providing a wide range of functions and utilities to perform complex calculations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on math_package_by_ziyodulla