Skip to content

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

License

Notifications You must be signed in to change notification settings

sraaphorst/simplecomplex

Repository files navigation

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.

Status: In progress.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages