sraaphorst / simplecomplex

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Kotlin 100.0%