All Projects → rugheid → Swift-MathEagle

rugheid / Swift-MathEagle

Licence: MIT license
A general math framework to make using math easy. Currently supports function solving and optimisation, matrix and vector algebra, complex numbers, big int, big frac, big rational, graphs and general handy extensions and functions.

Programming Languages

swift
15916 projects
C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Swift-MathEagle

Igraph
Library for the analysis of networks
Stars: ✭ 1,145 (+2692.68%)
Mutual labels:  graph-algorithms, mathematics
Suitesparse
The official SuiteSparse library: a suite of sparse matrix algorithms authored or co-authored by Tim Davis, Texas A&M University
Stars: ✭ 344 (+739.02%)
Mutual labels:  graph-algorithms, mathematics
biginteger
A PHP library to work with big integers.
Stars: ✭ 19 (-53.66%)
Mutual labels:  mathematics, biginteger
factorization-diagrams
Interactive factorization diagrams
Stars: ✭ 27 (-34.15%)
Mutual labels:  mathematics, prime-numbers
cplot
Function plotter
Stars: ✭ 27 (-34.15%)
Mutual labels:  mathematics, complex-numbers
D3graphtheory
💥 Interactive and colorful 🎨 graph theory tutorials made using d3.js ⚡️
Stars: ✭ 1,364 (+3226.83%)
Mutual labels:  graph-algorithms, mathematics
Calc
C-style arbitrary precision calculator
Stars: ✭ 127 (+209.76%)
Mutual labels:  mathematics, complex-numbers
Data structure and algorithms library
A collection of classical algorithms and data-structures implementation in C++ for coding interview and competitive programming
Stars: ✭ 133 (+224.39%)
Mutual labels:  graph-algorithms, mathematics
swift-numberkit
Advanced numeric data types for Swift 5, including BigInt, Rational, and Complex numbers.
Stars: ✭ 47 (+14.63%)
Mutual labels:  complex-numbers, biginteger
math
Complex special functions and common mathematical operations in JavaScript
Stars: ✭ 42 (+2.44%)
Mutual labels:  mathematics, complex-numbers
Traverser
Traverser is a Java library that helps software engineers implement advanced iteration of a data structure.
Stars: ✭ 45 (+9.76%)
Mutual labels:  graph-algorithms
graph
modern mathematical graph/network library written in PHP
Stars: ✭ 12 (-70.73%)
Mutual labels:  graph-algorithms
django-postgresql-dag
Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.
Stars: ✭ 23 (-43.9%)
Mutual labels:  graph-algorithms
BigNumber
A really long long long long long long number in C++
Stars: ✭ 37 (-9.76%)
Mutual labels:  biginteger
okama
Investment portfolio and stocks analyzing tools for Python with free historical data
Stars: ✭ 87 (+112.2%)
Mutual labels:  mathematics
autodiff
A .NET library that provides fast, accurate and automatic differentiation (computes derivative / gradient) of mathematical functions.
Stars: ✭ 69 (+68.29%)
Mutual labels:  mathematics
ML-University
Machine Learning Open Source University
Stars: ✭ 423 (+931.71%)
Mutual labels:  mathematics
chinese-postman-problem
C++ solution for the chinese postman problem
Stars: ✭ 19 (-53.66%)
Mutual labels:  graph-algorithms
BigInteger
Be limited not by the size of your register but by the bulk of your RAM.
Stars: ✭ 13 (-68.29%)
Mutual labels:  biginteger
Program-Matematika
Program Matematika adalah sebuah repository GitHub yang berisi program yang dapat memudahkan para pelajar atau guru dalam menyelesaikan masalah Matematika dengan Terminal
Stars: ✭ 15 (-63.41%)
Mutual labels:  mathematics

Swift-MathEagle

Travis

MathEagle is named after the golden eagle, since this is the fastest bird in the world (in horizontal flight).

This project is meant to make math easy in swift without losing performance. The syntax is designed to be as simple as possible. Contributors are always welcome, the more the merrier!

Warning!

MathEagle is still in its initial development phase so the syntax still changes frequently.

Installation

The fastest way to add MathEagle to your project is to download it as a zip file and drag all files in the MathEagle/Source folder to your project. Make sure to add them to your target. For Mac applications you can use the generated framework, check the wiki for more information. I'm currently working on an iOS framework.

MathEagle requires gmp (GNU multiple precision arithmetic library) be installed. Install gmp via brew install gmp assuming you have Homebrew installed.

Supported Xcode Versions

MathEagle is fully compatible with:

  • Xcode 9 and Swift 4

Currently Supported

  • Basic extensions, operators like power (** operator) and functions like sign and factorial
  • Prime functions
  • Complex numbers
  • Single variable function root solving
  • Single variable function optimization
  • Matrix and Vector math
  • Basic graph algorithms

MathEagle is fully generic, so almost all classes and functions work with any type (even types you define). MathEagle vectors for example can also be of type Int, while the Float and Double type vectors use Accelerate in the background for speed.

Take a look at the Wiki for documentation.

Advantages

The biggest advantage of MathEagle is that it's totally generic. You can create matrices and vectors and use functions like isPrime with all numeric types. You can even create your own type (let's say Quaternion), implement the protocols and everything just works. Of course specific implementations are overloaded to maintain performance. Vector addition for Float vectors for example is overloaded to use the Accelerate framework.

Benchmarking

First benchmarking tests show that MathEagle is as fast as Python's famous numpy. You can check the "Benchmarking Files" folder in MathEagle's tests. (These tests were conducted on an early 2013 15-inch Retina Macbook Pro with a 2.7 GHz Intel Core i7 and 16 GB of RAM.

Here are some plots for Vector addition: ![Vector Addition Float Benchmarking](/MathEagleTests/Benchmarking Files/Plot Images/VectorAdditionFloat.png) ![Vector Addition Double Benchmarking](/MathEagleTests/Benchmarking Files/Plot Images/VectorAdditionDouble.png)

To Do

  • Documentation
  • Further General Development
  • Incorporate Accelerate for all applications
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].