Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sraaphorst/simplecomplex

A very simple implementation of complex numbers (polar and cartesian coordinates) in Kotlin
https://github.com/sraaphorst/simplecomplex

complex complex-numbers imaginary-numbers kotlin kotlin-multiplatform math mathematics

Last synced: 5 days ago
JSON representation

A very simple implementation of complex numbers (polar and cartesian coordinates) in Kotlin

Awesome Lists containing this project

README

        

# SimpleComplex

A very simple implementation of complex numbers in Kotlin.

- Numbers derive from `ComplexBase` and there are two concrete subclasses,
namely:
- `Polar`
- `Cartesian`

- Testing is done using property-based testing with `kotest`.
- All code is included in a single file, namely `Complex.kt` which can
just be dropped into a project.
- Developed to solve equations with higher dimension than quadratics for
my implementation of [The Ray Tracer Challenge](http://raytracerchallenge.com/).
- https://github.com/sraaphorst/raytracer-kotlin

*Status:* _In progress._