Math_Library 1.0.2
dotnet add package Math_Library --version 1.0.2
NuGet\Install-Package Math_Library -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Math_Library" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Math_Library" Version="1.0.2" />
<PackageReference Include="Math_Library" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Math_Library --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Math_Library, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Math_Library@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Math_Library&version=1.0.2
#tool nuget:?package=Math_Library&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Add Math_Library using.
All functions get demonstrated in the following method:
public static void ExampleUsage()
{
//Following lines are example usages of this library
Console.WriteLine("When B = 1 and C = 2 then A is: " + Pythagoras.GetA(1, 2));
Console.WriteLine("When A = 2 and C = 4 then B is: " + Pythagoras.GetB(2, 4));
Console.WriteLine("When A = 3 and B = 6 then C is: " + Pythagoras.GetC(3, 6));
Console.WriteLine("When A = 6 and C = 10 then the area is: " + Pythagoras.GetArea(6, null, 10));
Console.WriteLine("When A = 6 and C = 9 then the height is: " + Pythagoras.GetH(6, null, 9) + Environment.NewLine);
Console.WriteLine("SHA256 hash of 'input' is: " + SHA256.GetSHA256("input").ToUpper() + Environment.NewLine);
Console.WriteLine("Sorted numbers: ");
foreach (var i in QuickSort.Sort(new List<int>() { 3, 1, 2, 4 })) Console.WriteLine(i);
Console.WriteLine(Environment.NewLine + "Is 7 prime: " + Prime.IsPrime(7) + Environment.NewLine);
Console.WriteLine("Levenshtein-Distance of 'Spelling' and 'speehling' is:" + Levenshtein.GetDistance("Spelling", "speling") + Environment.NewLine);
Console.WriteLine("The 14. Fibonacci Number is: " + Fibonacci.GetSequence(14) + Environment.NewLine);
Console.WriteLine("Prime factorization of 23520 is the following: ");
string str = string.Empty;
foreach (var j in FactoringCalc.PrimeFactorization(23520))
{
str += j.ToString() + " * ";
}
Console.WriteLine(str.Substring(0, str.Length - 3) + Environment.NewLine);
string encryptedText = Encrypter.Encrypt("MyPlainText", "MySecretKey");
Console.WriteLine("Encrypted text: " + encryptedText);
Console.WriteLine("Decrypted text: " + Encrypter.Decrypt(encryptedText, "MySecretKey") + Environment.NewLine);
Console.WriteLine("Collatz Conjecture of 26: ");
string str2 = string.Empty;
foreach (var k in Collatz.GetSequence(26))
{
str2 += k + ", ";
}
Console.WriteLine(str2.Substring(0, str2.Length - 2) + Environment.NewLine);
string binary = BinaryConverter.TextToBinary("Binary");
Console.WriteLine(binary);
Console.WriteLine(BinaryConverter.BinaryToText(binary));
Console.ReadLine();
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2 | 371 | 10/2/2022 |