Skip to content

Commit

Permalink
Add link to QuadMatrix to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
m-vokhm committed Jul 8, 2024
1 parent 8a8d7af commit 925a900
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,18 @@ The numbers in the charts represent millions of individual operations per second
#### Usage
A simple example:

Quadruple radius = new Quadruple(5.5); // Constructors accept double
Quadruple radius = new Quadruple(5.5); // Constructors accept doubles
System.out.println("Radius of the circle: " + radius);
// prints "Radius of the circle: 5.500000000000000000000000000000000000000e+00"
radius.multiply(radius); // r^2
System.out.println("Area of the circle: " +
radius.multiply(Quadruple.pi())); // pi*r^2
// prints "Area of the circle: 9.503317777109124546349496234420496224688e+01"

There exists a [simple matrix library](https://github.com/m-vokhm/QuadMatrix) that utilizes the `Quadruple` type. This library offers three distinct matrix classes, enabling basic operations on square matrices in three modes: a fast but less accurate mode using standard `double` arithmetic, a relatively fast and fairly accurate mode using `Quadruple`, and a highly accurate but slower mode using `BigDecimal`.



#### Testing
A simple stand-alone test utility `QuadTest.java` is included
in `com.mvohm.quadruple.test` package located in the `test` folder.
Expand Down

0 comments on commit 925a900

Please sign in to comment.