Skip to content

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

License

Notifications You must be signed in to change notification settings

dotty-staging/Numbers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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–2020 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 e-mail to contact at sciss.de.

linking

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

The current version v is "0.2.1".

building

The project builds with sbt against Scala 2.13, 2.12, Dotty (JVM) and Scala 2.13 (JS). The last version to support Scala 2.11 was v0.2.0.

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.

Packages

No packages published

Languages

  • Scala 98.7%
  • SuperCollider 1.2%
  • Shell 0.1%