sciss / numbers

A collection of numeric functions and type enrichments. Mirror of https://git.iem.at/sciss/Numbers

GitHub
Contributors Wanted

Numbers

Build Status Maven Central

statement

Numbers is a library for the Scala programming language which provides various useful numeric functions and type enrichment operators. Many of the unary and binary operators are adapted from the SuperCollider language, and Numbers is included in the ScalaCollider project. This library is (C)opyright 2013–2018 by Hanns Holger Rutz. All rights reserved. It is released under the GNU Lesser General Public License and comes with absolutely no warranties. To contact the author, send an email to contact at sciss.de

linking

"de.sciss" %% "numbers"  % v

The current version v is "0.2.0".

building

The project builds with sbt against Scala 2.12, 2.11.

To compile sbt compile. To test, sbt test. For the API docs, sbt doc.

example

import de.sciss.numbers.Implicits._

2.0.sqrt.ampDb  // 3.01
0.1.linExp(0, 1, 100, 10000)  // 158.5

changes

As of version 0.2.0, we use more idiomatic Scala names with camel-case for composite operators, e.g. ampDb instead of ampdb, linLin instead of linlin, absDif instead of absdif.