MathLibrary is a Kotlin DSL project created by Eli Bradley that encompasses applications of the following mathematical computations:
- Vector Algebra
- Multivariable Calculus
- Gradient Descent
- Basic Linear Algebra
- Electrostatic Simulations
- Analytic Transformations
- Taylor Series
- Fourier Series and Transformations
- Complex Algebra
- Complex Numbers
- Complex Vectors
- Complex Matrices
- Quantum Computing
- Entangled Qubit States
- Quantum Gates
- Quantum Circuits
- Parallel Gates
- Sequential Gates
- Measuring
- How to Install and Run the Project
- How to Use the Project
- Project Structure
- Testing
- How to Contribute to the Project
- Credits
- License
- Clone the repository:
git clone https://github.com/EtherTyper/MathLibrary.git
- Build the new library:
- Ensure you are in the MathLibrary directory using the command
cd MathLibrary
- Run the following command in the terminal to compile and install the new library to your local Maven repository:
mvn install
- Add dependencies:
- Add the following code to the section in your pom.xml file:
<dependency>
<groupId>mathLibrary</groupId>
<artifactId>MathLibrary</artifactId>
<version>1.0</version>
</dependency>
- Update project dependencies:
- If you are coding your project using an IDE such as IntelliJ IDEA or NetBeans, update the dependencies accordingly to ensure the new library is available for use.
- Import and use MathLibrary:
- Once the library is recognized, you can import classes and functions available in MathLibrary for mathematical computations in your Kotlin project.
Detailed instructions and examples are provided in the src folder, categorized into subdirectories based on each mathematical topic.
The project is structured as follows:
- applications: Contains specific applications of the MathLibrary, such as electrostatics, mechanics, and quantum computations.
- core: Core mathematical functionalities, including complex numbers, linear algebra, transformations, and vectors.
- tests: Unit tests for various components, covering complex numbers, matrices, quantum computations, vectors, and more.
The tests directory located under /MathLibrary/src/tests includes comprehensive unit tests for different mathematical components. Execute the tests by running the corresponding main functions in the test files. Feel free to write additional test cases.
- AllTests.kt: Executes all unit tests in one go.
- ComplexTests.kt, MatrixTests.kt, QuantumTests.kt, VectorTests.kt: Individual test files for specific components.
If would like to contribute to the MathLibrary functionality by implementing additional features or fixing errors, follow the steps below:
- Fork the MathLibrary repository.
- Implement additional changes.
- Initiate a pull request.
Alternatively, you may create an issue.
Project by Eli Joseph Bradley
This project is licensed under the terms of the License.