Euler

Swift Custom Operators for Mathematical Notation

2 years after

Euler

Euler uses custom operators in the "Math Symbols" character set to implement functions using traditional mathematical notation.

Please keep in mind that this is not intended or recommended for production. Custom operators of any breed are ripe for misuse and abuse, and should be used with as much care and caution as you would something like method swizzling or complex macros.

Euler is much better-suited to a Playground, where it could be used for teaching and learning logic and mathematics using a more vernacular notation.

Euler is named after Leonhard Euler, the Swiss mathematician credited for the popularization of modern mathematical notation such as the Greek letters Σ for summation & π for the ratio of a circle's circumference to its diameter, the letters e to denote the base of the natural logarithm & i to denote the imaginary unit, sin & cos for trigonometric functions, and f(x) to denote the function f with argument x.

Installation

The infrastructure and best practices for distributing Swift libraries is currently being developed by the developer community during this beta period of the language and Xcode. In the meantime, you can simply add Euler as a git submodule, and drag the Euler.swift file into your Xcode project.


Inventory

Mathematical Constants

  • π - Pi
  • `

Related Repositories

euler-manager

euler-manager

Start, run, and test your project Euler solutions from the command line. ...

euler-problems

euler-problems

Repository that contains all the algorithms for every problems that you can find ...

euler-ui

euler-ui

Euler UI widgets & utilities, powered by React. ...

project-euler

project-euler

Solutions to Project Euler problem set in Clojure ...

project-euler-javascript

project-euler-javascript

:100: Project Euler's solutions and boilerplate. ...