Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.
/ OpenJDK.BigMathNET Public archive

Advanced Java big math functions implementation using .NET Framework.

License

Notifications You must be signed in to change notification settings

asiryan/OpenJDK.BigMathNET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

IKVM.NET

IKVM.NET is an implementation of Java for Mono and the .NET Framework. It includes the following components:

  • A Java Virtual Machine implemented in .NET
  • A .NET implementation of the Java class libraries
  • Tools that enable Java and .NET interoperability

Read more about what you can do with IKVM.NET.

OpenJDK.BigMathNET

OpenJDK.BigMathNET is a C# port of the Java library for advanced mathematical functions with arbitrary precision depended on IKVM.NET. It implements the following components:

  • BigDecimalMath
  • BigComplexMath
  • BigRational
  • BigComplex

and extends java.math functionality in IKVM.NET.
To use it in your own project download the library from release folder or use nuget package manager.

using java.math;

Usage example with calculating square root of 2

MathContext context = new MathContext(64);
BigDecimal a = new BigDecimal("2.0");
BigDecimal b = a.sqrt(context);

will produce the following output to the console:

1.414213562373095048801688724209698078569671875376948073176679738

License

MIT