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.
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+.