Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sraaphorst/simplecomplex
- Owner: sraaphorst
- License: bsd-3-clause
- Created: 2023-01-30T02:28:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T10:30:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-04T14:28:54.778Z (10 days ago)
- Topics: complex, complex-numbers, imaginary-numbers, kotlin, kotlin-multiplatform, math, mathematics
- Language: Kotlin
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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._