math_package_by_ziyodulla 1.0.2
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.
Changelog #
All notable changes to this project will be documented here.
1.0.0 Initial Release (March 2025) #
Added #
- Implemented basic mathematical functions:
add(int a, int b): Additionsubtract(int a, int b): Subtractionmultiply(int a, int b): Multiplicationdivide(int a, int b): Division (throws an error for division by zero)
- Added
factorial(int n)function for calculating factorial. - Added
average(List<int> numbers)function to compute the average of a list. - Implemented conversion functions:
toDegrees(double radians): Convert radians to degrees.toRadians(double degrees): Convert degrees to radians.
- Added
toModFind(int a, int b)function to compute the remainder of division. - Included unit tests for all functions.
- Added an example file demonstrating usage of the package.