MathHelper.io
1.0.0.3
Easy way to work with mathematical formulas
InstallPackage 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MathHelper.io, 1.0.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MathHelper.io as a Cake Addin
#addin nuget:?package=MathHelper.io&version=1.0.0.3
// Install MathHelper.io as a Cake Tool
#tool nuget:?package=MathHelper.io&version=1.0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MathHelper.io
This is a math nuget package used to simplify a lot of mathematical operations and formulas
 IsOdd  checks if a number is odd or not
 IsEven  checks if a number is even or not
 IsPrime  checks if a number is prime or not
 Add  adds two numbers. Ex: 2.Add(3) = 5
 Sum  adds a list of numbers. Ex: {1,2,3,4,5,6,7,8,9,10}.Sum() = 55
 Substract  substracts two numbers. Ex: 7.Subsctract(10) = 3
 Average  find the average of multiple numbers.
 WeightedAverage  finds the average using the weights of respective values
AREA
 Square  A = s^2; where s = any side of the square
 Rectangle  A = l*w; where l = length and w = width
 Parallelogram  A = b*h; where b = base and h = height
 Triangle  A= 1/2bh; where b = base and h = height
 Circle  A = π*r^2; where π= 3.14 and r = radius
 Trapezoid  A = 1/2(b1 + b2)*h; where b1,b2 are the bases
 Sphere  S = 4πr^2; where s= Surface area
SURFACE AREA(SA)
 Cube  SA = 6*s^2; where s = any side
 Cylinder (lateral)  SA = 2πr*h; where π = 3.14 by default, r = radius, h = height
PERIMETER (P)
 Square  P = 4*s; where s = any side
 Rectangle  P = 2l + 2w; where l = length and w = width
 Triangle  P = s1 + s2 + s3; where s is a side
 AnyShape  P = the length of all shapes added together
 Circle (Circumference)  C = π*d; where π = 3.14 by default and d = diameter
VOLUME (V)
 Cube  V = s^3; where s = any side
 Rectangular  V = lwh; where l = length, w = width and h = height
 SquarePyramid  V = (1/3)b^2h; where b = base length, w = width and h = height
 Cylinder  V = πr^2h; where π = 3.14 by default, r = radius and h = height
 Cone  V = (1/3)πr^2*h; where π = 3.14 by default, r = radius and h = height
 Sphere  V = (4/3)πr^3; where r = radius and π = 3.14 by default
 RightCircularCylinder  V = πr^2h; where r = radius, v = volume and h = height.
FORMULAS/EQUATIONS
 DistanceBetweenTwoPoints  d = sqrt((x2x1)^2 + (y2y1)^2), where (x1,y1) and (x2,y2) are two points on a coordinate plane
 SlopeOfLine  m = (y2y)/(x2x1); where where (x1,y1) and (x2,y2) are two points on a coordinate plane
 QuadraticEquation  ax^2 + bx +c = 0; where a and b are coefficients and c is constant
 StandartEquationOfCircle  (xh)^2 + (yk)^2 = r^2; where r is the radius and (h,k) is the center
 QuadraticFormula  x = (b + sqrt(b^2  4ac))/(2a); where a and b are coefficients and c is constant
 PointSlopeEquation  yy1 = m(xx1); where m is the slope and the point is (x1,y1)
 SlopeInterceptEquation  y = mx +b; where m is the slope nd b is the yintercept
MathHelper.io
This is a math nuget package used to simplify a lot of mathematical operations and formulas
 IsOdd  checks if a number is odd or not
 IsEven  checks if a number is even or not
 IsPrime  checks if a number is prime or not
 Add  adds two numbers. Ex: 2.Add(3) = 5
 Sum  adds a list of numbers. Ex: {1,2,3,4,5,6,7,8,9,10}.Sum() = 55
 Substract  substracts two numbers. Ex: 7.Subsctract(10) = 3
 Average  find the average of multiple numbers.
 WeightedAverage  finds the average using the weights of respective values
AREA
 Square  A = s^2; where s = any side of the square
 Rectangle  A = l*w; where l = length and w = width
 Parallelogram  A = b*h; where b = base and h = height
 Triangle  A= 1/2bh; where b = base and h = height
 Circle  A = π*r^2; where π= 3.14 and r = radius
 Trapezoid  A = 1/2(b1 + b2)*h; where b1,b2 are the bases
 Sphere  S = 4πr^2; where s= Surface area
SURFACE AREA(SA)
 Cube  SA = 6*s^2; where s = any side
 Cylinder (lateral)  SA = 2πr*h; where π = 3.14 by default, r = radius, h = height
PERIMETER (P)
 Square  P = 4*s; where s = any side
 Rectangle  P = 2l + 2w; where l = length and w = width
 Triangle  P = s1 + s2 + s3; where s is a side
 AnyShape  P = the length of all shapes added together
 Circle (Circumference)  C = π*d; where π = 3.14 by default and d = diameter
VOLUME (V)
 Cube  V = s^3; where s = any side
 Rectangular  V = lwh; where l = length, w = width and h = height
 SquarePyramid  V = (1/3)b^2h; where b = base length, w = width and h = height
 Cylinder  V = πr^2h; where π = 3.14 by default, r = radius and h = height
 Cone  V = (1/3)πr^2*h; where π = 3.14 by default, r = radius and h = height
 Sphere  V = (4/3)πr^3; where r = radius and π = 3.14 by default
 RightCircularCylinder  V = πr^2h; where r = radius, v = volume and h = height.
FORMULAS/EQUATIONS
 DistanceBetweenTwoPoints  d = sqrt((x2x1)^2 + (y2y1)^2), where (x1,y1) and (x2,y2) are two points on a coordinate plane
 SlopeOfLine  m = (y2y)/(x2x1); where where (x1,y1) and (x2,y2) are two points on a coordinate plane
 QuadraticEquation  ax^2 + bx +c = 0; where a and b are coefficients and c is constant
 StandartEquationOfCircle  (xh)^2 + (yk)^2 = r^2; where r is the radius and (h,k) is the center
 QuadraticFormula  x = (b + sqrt(b^2  4ac))/(2a); where a and b are coefficients and c is constant
 PointSlopeEquation  yy1 = m(xx1); where m is the slope and the point is (x1,y1)
 SlopeInterceptEquation  y = mx +b; where m is the slope nd b is the yintercept
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.