# MathHelper.io 1.0.0.3

Easy way to work with mathematical formulas

`Install-Package MathHelper.io -Version 1.0.0.3`
`dotnet add package MathHelper.io --version 1.0.0.3`
`<PackageReference Include="MathHelper.io" Version="1.0.0.3" />`
For projects that support PackageReference, copy this XML node into the project file to reference the package.
`paket add MathHelper.io --version 1.0.0.3`

## MathHelper.io

This is a math nuget package used to simplify a lot of mathematical operations and formulas

1. IsOdd - checks if a number is odd or not
2. IsEven - checks if a number is even or not
3. IsPrime - checks if a number is prime or not
5. Sum - adds a list of numbers. Ex: {1,2,3,4,5,6,7,8,9,10}.Sum() = 55
6. Substract - substracts two numbers. Ex: 7.Subsctract(10) = -3
7. Average - find the average of multiple numbers.
8. WeightedAverage - finds the average using the weights of respective values

## AREA

1. Square - A = s^2; where s = any side of the square
2. Rectangle - A = l*w; where l = length and w = width
3. Parallelogram - A = b*h; where b = base and h = height
4. Triangle - A= 1/2bh; where b = base and h = height
5. Circle - A = π*r^2; where π= 3.14 and r = radius
6. Trapezoid - A = 1/2(b1 + b2)*h; where b1,b2 are the bases
7. Sphere - S = 4πr^2; where s= Surface area

## SURFACE AREA(SA)

1. Cube - SA = 6*s^2; where s = any side
2. Cylinder (lateral) - SA = 2πr*h; where π = 3.14 by default, r = radius, h = height

## PERIMETER (P)

1. Square - P = 4*s; where s = any side
2. Rectangle - P = 2l + 2w; where l = length and w = width
3. Triangle - P = s1 + s2 + s3; where s is a side
4. AnyShape - P = the length of all shapes added together
5. Circle (Circumference) - C = π*d; where π = 3.14 by default and d = diameter

## VOLUME (V)

1. Cube - V = s^3; where s = any side
2. Rectangular - V = lwh; where l = length, w = width and h = height
3. SquarePyramid - V = (1/3)b^2h; where b = base length, w = width and h = height
4. Cylinder - V = πr^2h; where π = 3.14 by default, r = radius and h = height
5. Cone - V = (1/3)πr^2*h; where π = 3.14 by default, r = radius and h = height
6. Sphere - V = (4/3)πr^3; where r = radius and π = 3.14 by default
7. RightCircularCylinder - V = πr^2h; where r = radius, v = volume and h = height.

## FORMULAS/EQUATIONS

1. DistanceBetweenTwoPoints - d = sqrt((x2-x1)^2 + (y2-y1)^2), where (x1,y1) and (x2,y2) are two points on a coordinate plane
2. SlopeOfLine - m = (y2-y)/(x2-x1); where where (x1,y1) and (x2,y2) are two points on a coordinate plane
3. QuadraticEquation - ax^2 + bx +c = 0; where a and b are coefficients and c is constant
4. StandartEquationOfCircle - (x-h)^2 + (y-k)^2 = r^2; where r is the radius and (h,k) is the center
5. QuadraticFormula - x = (-b +- sqrt(b^2 - 4ac))/(2a); where a and b are coefficients and c is constant
6. PointSlopeEquation - y-y1 = m(x-x1); where m is the slope and the point is (x1,y1)
7. SlopeInterceptEquation - y = mx +b; where m is the slope nd b is the y-intercept

## MathHelper.io

This is a math nuget package used to simplify a lot of mathematical operations and formulas

1. IsOdd - checks if a number is odd or not
2. IsEven - checks if a number is even or not
3. IsPrime - checks if a number is prime or not
5. Sum - adds a list of numbers. Ex: {1,2,3,4,5,6,7,8,9,10}.Sum() = 55
6. Substract - substracts two numbers. Ex: 7.Subsctract(10) = -3
7. Average - find the average of multiple numbers.
8. WeightedAverage - finds the average using the weights of respective values

## AREA

1. Square - A = s^2; where s = any side of the square
2. Rectangle - A = l*w; where l = length and w = width
3. Parallelogram - A = b*h; where b = base and h = height
4. Triangle - A= 1/2bh; where b = base and h = height
5. Circle - A = π*r^2; where π= 3.14 and r = radius
6. Trapezoid - A = 1/2(b1 + b2)*h; where b1,b2 are the bases
7. Sphere - S = 4πr^2; where s= Surface area

## SURFACE AREA(SA)

1. Cube - SA = 6*s^2; where s = any side
2. Cylinder (lateral) - SA = 2πr*h; where π = 3.14 by default, r = radius, h = height

## PERIMETER (P)

1. Square - P = 4*s; where s = any side
2. Rectangle - P = 2l + 2w; where l = length and w = width
3. Triangle - P = s1 + s2 + s3; where s is a side
4. AnyShape - P = the length of all shapes added together
5. Circle (Circumference) - C = π*d; where π = 3.14 by default and d = diameter

## VOLUME (V)

1. Cube - V = s^3; where s = any side
2. Rectangular - V = lwh; where l = length, w = width and h = height
3. SquarePyramid - V = (1/3)b^2h; where b = base length, w = width and h = height
4. Cylinder - V = πr^2h; where π = 3.14 by default, r = radius and h = height
5. Cone - V = (1/3)πr^2*h; where π = 3.14 by default, r = radius and h = height
6. Sphere - V = (4/3)πr^3; where r = radius and π = 3.14 by default
7. RightCircularCylinder - V = πr^2h; where r = radius, v = volume and h = height.

## FORMULAS/EQUATIONS

1. DistanceBetweenTwoPoints - d = sqrt((x2-x1)^2 + (y2-y1)^2), where (x1,y1) and (x2,y2) are two points on a coordinate plane
2. SlopeOfLine - m = (y2-y)/(x2-x1); where where (x1,y1) and (x2,y2) are two points on a coordinate plane
3. QuadraticEquation - ax^2 + bx +c = 0; where a and b are coefficients and c is constant
4. StandartEquationOfCircle - (x-h)^2 + (y-k)^2 = r^2; where r is the radius and (h,k) is the center
5. QuadraticFormula - x = (-b +- sqrt(b^2 - 4ac))/(2a); where a and b are coefficients and c is constant
6. PointSlopeEquation - y-y1 = m(x-x1); where m is the slope and the point is (x1,y1)
7. SlopeInterceptEquation - y = mx +b; where m is the slope nd b is the y-intercept

## Dependencies

• #### .NETCoreApp 2.0

• No dependencies.

## Used By

### NuGet packages

This package is not used by any NuGet packages.

### GitHub repositories

This package is not used by any popular GitHub repositories.