Skip to content

Rychu-Pawel/NumericalLibraries

Repository files navigation

NumericalLibraries

Numerical Libraries in .NET C#

Easy to use and free numerical .NET C# library that can compute text math formulas.

You can try them on: http://pawelrychlicki.pl/NumericalCalculator

Or in the sample application: http://pawelrychlicki.pl/Application/Details/6/numerical-calculator-14

Sources for the sample application can be found here: https://github.com/Rychu-Pawel/NumericalCalculator

Compiled libraries can be downloaded from nuget: https://www.nuget.org/packages?q=rychusoft.numericallibraries

Functions which library can handle:

Sine = sin
Hyperbolic sine = sinh
Cosine = cos
Hyperbolic cosine = cosh
Tangent = tg, tan
Hyperbolic tangent = tgh, tanh
Cotangent = ctg, ctn, cot
Hyperbolic cotangent = ctgh, ctnh, coth
Secant = sec
Cosecant = csc
Arcsine = asin
Arccosine = acos
Arctangent = atg
Arccotangent = actg
Exponential function with e base = exp
Square root = sqrt
Base 2 logarithm = lg
Base e logarithm = ln
Base 10 logarithm = log

Factorial of natural numbers less then 20 is computed with standard formula: 5! = 12345 Factorial of real numbers and natural numbers greater than 19 is gamma function.

You can use sinx instead of sin(x) but it's not recommended - in some cases it can affect the result. For example sinx+2 is sin(x)+2 not sin(x+2).

In formulas you can use PI and E. PI will be calculated as 3.14159265358979, and E as 10 raised to the power of what is after E. For example: E-05 = 10^(-5)

Spaces in formulas are ignored.

Application can't compute imaginary numbers. If during computations Numerical Calculator encounter imaginary numbers it will return "not a number" result.

You can input nested expressions like sin(cos(30)+tg(sqrt(0,4)))

Library is divided into parts (follow links for more details and usage info):

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages