Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

objectionary/eo-math

Repository files navigation

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status codecov Maven Central Hits-of-Code Lines of code License

This repository is deprecated! We've moved all EO objects from this repository to objectionary/eo.

EOLANG objects for trigonometry and floating point opeartions.

This is how you can manipulate with sin, cos, tan and ctan via angle:

+alias org.eolang.math.pi
+alias org.eolang.math.angle

(angle pi).cos > cos-pi
(angle (angle 30).as-radians).sin > thirty-degrees-sin
(angle (pi.div 3.0)).tan > pi-div-three-tan

You are welcome to add more primitives to this lib. You can see what we need in the lib in the paper.

How to Contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install -Pqulice

You will need Maven 3.3+ and Java 8+.