All Projects → mattt → Euler

mattt / Euler

Licence: mit
Swift Custom Operators for Mathematical Notation

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Euler

Julia Set Playground
A Swift playground that generates beautiful Julia set fractal images.
Stars: ✭ 236 (-78.98%)
Mutual labels:  playground, math
Unity3d Curves
2D curves in polar and Cartesian coordinates, 3D curves, surfaces and fractals for the Unity3D game engine.
Stars: ✭ 59 (-94.75%)
Mutual labels:  math
Code Playground
CodePlayground is a playground tool for go and rust language.
Stars: ✭ 45 (-95.99%)
Mutual labels:  playground
Sympy
A computer algebra system written in pure Python
Stars: ✭ 8,688 (+673.64%)
Mutual labels:  math
Rich Text Editor
Math editor (http://digabi.github.io/rich-text-editor/)
Stars: ✭ 45 (-95.99%)
Mutual labels:  math
Vue Mathlive
Example of using the Vue wrapper for MathLive math editor
Stars: ✭ 52 (-95.37%)
Mutual labels:  math
Componentfixture
🛠️Interactive sandox playground for vue components
Stars: ✭ 44 (-96.08%)
Mutual labels:  playground
Kubernetes Operator
kubernetes-operator is a control plane and manage all kubernetes cluster lifecycle.
Stars: ✭ 61 (-94.57%)
Mutual labels:  operator
Dyci Main
Dynamic Code Injection Tool for Objective-C
Stars: ✭ 1,103 (-1.78%)
Mutual labels:  playground
Swift Numerics
Numerical APIs for Swift
Stars: ✭ 1,052 (-6.32%)
Mutual labels:  math
Cluster Operator
cluster-operator creates, configures and helps manage StorageOS cluster on Kubernetes
Stars: ✭ 50 (-95.55%)
Mutual labels:  operator
Phobos
The standard library of the D programming language
Stars: ✭ 1,038 (-7.57%)
Mutual labels:  math
Mockswift
MockSwift is a Mock library written in Swift.
Stars: ✭ 56 (-95.01%)
Mutual labels:  playground
Omdb Graphql Wrapper
🚀 GraphQL wrapper for the OMDb API
Stars: ✭ 45 (-95.99%)
Mutual labels:  playground
Yawysiwygee
Yet another what-you-see-is-what-you-get equation editor
Stars: ✭ 60 (-94.66%)
Mutual labels:  math
Jglm
Java OpenGL Mathematics Library
Stars: ✭ 44 (-96.08%)
Mutual labels:  math
Rxjavaapp
学习RxJava操作符的APP,新增RxJava2.x介绍
Stars: ✭ 1,049 (-6.59%)
Mutual labels:  operator
Sobol.jl
generation of Sobol low-discrepancy sequence (LDS) for the Julia language
Stars: ✭ 51 (-95.46%)
Mutual labels:  math
Carc.in
Compile & run code in
Stars: ✭ 62 (-94.48%)
Mutual labels:  playground
String Calc
PHP calculator library for mathematical terms (expressions) passed as strings
Stars: ✭ 60 (-94.66%)
Mutual labels:  math

Euler

Build Status License Swift Version

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.


Example Usage

import Foundation
import Euler
import PlaygroundSupport

𝑒 // 2.718281828459045

¬true // false

3 × 4 // 12

let prime = [2, 3, 5, 7, 11]
let fibonacci = [1, 1, 2, 3, 5, 8, 13]
prime  fibonacci // {2, 3, 5}

[1, 2, 3, 4, 5] // 15

[1, 2]  [3, 4] // 11

7  9 // true

var f: (Double) -> Double = sin
let g: (Double) -> Double = cos

for x in stride(from: 0, to: 4 * π, by: π / 8) {
    (f  g)(x) // ∿∿∿
}

(f)(π) // -1

Inventory

Mathematical Constants

Logic

Arithmetic

Sets

Sequences

Vectors

Comparison

Calculus

Functions


License

MIT

Contact

Mattt (@mattt)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].