{"id":17153577,"url":"https://github.com/arguiot/euler","last_synced_at":"2026-03-07T17:33:02.766Z","repository":{"id":56910086,"uuid":"225975180","full_name":"arguiot/Euler","owner":"arguiot","description":"The open-source computational framework for the Swift language","archived":false,"fork":false,"pushed_at":"2023-09-23T23:36:08.000Z","size":155309,"stargazers_count":48,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-27T21:20:34.620Z","etag":null,"topics":["algebra","bignumber","cocoapods","euler","math","mathematics","statistics","swift","symbolic-computation","xcode"],"latest_commit_sha":null,"homepage":"https://euler.arguiot.com","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arguiot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-04T23:23:14.000Z","updated_at":"2023-12-14T08:34:33.000Z","dependencies_parsed_at":"2024-10-14T21:56:43.654Z","dependency_job_id":null,"html_url":"https://github.com/arguiot/Euler","commit_stats":{"total_commits":329,"total_committers":2,"mean_commits":164.5,"dds":"0.024316109422492405","last_synced_commit":"4601b8e3685b10dbce616eb96a01f7a5c7f3fa91"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arguiot%2FEuler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arguiot%2FEuler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arguiot%2FEuler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arguiot%2FEuler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arguiot","download_url":"https://codeload.github.com/arguiot/Euler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717240,"owners_count":21150387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algebra","bignumber","cocoapods","euler","math","mathematics","statistics","swift","symbolic-computation","xcode"],"created_at":"2024-10-14T21:46:37.723Z","updated_at":"2026-03-07T17:33:02.697Z","avatar_url":"https://github.com/arguiot.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003cimg src=\"https://euler.arguiot.com/Euler.svg\" alt=\"Logo\" height=\"200\"\u003e\u003ch1\u003eEuler\u003c/h1\u003e\nA computanional framework written in Swift\n\u003c/div\u003e\n\nEuler is a mathematical framework that is packed up with tons of useful mathematical functions. It is composed of functions in most mathematical fields such as algebra, number theory, statistics, etc... It was designed to help you turn your computer into a mathematical guru.\n# Links\n- **Documentation:** https://euler.arguiot.com\n\n## Installation\nYou can use the following options to install Euler, but we recommend using CocoaPods or SPM.\n### CocoaPods\n\n[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Euler into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'Euler', '~\u003e 0.3.12'\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Euler into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"arguiot/Euler\" ~\u003e 0.3.12\n```\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but Euler does support its use on supported platforms.\n\nOnce you have your Swift package set up, adding Euler as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/arguiot/Euler.git\", .upToNextMajor(from: \"0.3.12\"))\n]\n```\n\n### Manually\n\nIf you prefer not to use any of the aforementioned dependency managers, you can integrate Euler into your project manually.\n\n#### Embedded Framework\n\n- Open up Terminal, `cd` into your top-level project directory, and run the following command \"if\" your project is not initialized as a git repository:\n\n  ```bash\n  $ git init\n  ```\n\n- Add Euler as a git [submodule](https://git-scm.com/docs/git-submodule) by running the following command:\n\n  ```bash\n  $ git submodule add https://github.com/arguiot/Euler.git\n  ```\n\n- Open the new `Euler` folder, and drag the `Euler.xcodeproj` into the Project Navigator of your application's Xcode project.\n\n    \u003e It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.\n\n- Select the `Euler.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.\n- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the \"Targets\" heading in the sidebar.\n- In the tab bar at the top of that window, open the \"General\" panel.\n- Click on the `+` button under the \"Embedded Binaries\" section.\n- You will see two different `Euler.xcodeproj` folders each with two different versions of the `Euler.framework` nested inside a `Products` folder.\n\n    \u003e It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Euler.framework`.\n\n- Select the top `Euler.framework` for iOS and the bottom one for macOS.\n\n    \u003e You can verify which one you selected by inspecting the build log for your project. The build target for `Euler` will be listed as either `Euler iOS`, `Euler macOS`, `Euler tvOS` or `Euler watchOS`.\n\n- And that's it!\n\n  \u003e The `Euler.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.\n\n\n# Showcase\nHere is a list of apps using Euler to work (not exhaustive)\n\n\u003cimg src=\"https://euler.arguiot.com/Euclid.png\" alt=\"Euclid\" height=\"200\"\u003e\n\n\u003e **Euclid Calculator**\n\u003e\n\u003e Euclid is a modern and fully featured calculator for macOS that aims to replace the default calculation app. Euclid uses Euler to parse and evaluate every calculations. It relies heavily on the Algebra and Tables modules.\n\n# Project\n### Inspiration\n\nThe project was largely inspired by:\n- [TheoremJS](https://theorem.js.org)\n- [SymPy](https://www.sympy.org/)\n- [Swift BigInt](https://github.com/mkrd/Swift-BigInt)\n- [Wolfram Language](https://www.wolfram.com/language/)\n\n### Why Swift\nIn retrospect, it isn’t a surprise that Swift is a good fit for the needs of this project. Swift was designed and built by a close-knit team. That team previously built a highly modular and composable compiler infrastructure (LLVM), a compiler and runtime for a highly dynamic Smalltalk-derived language (Objective-C), the compiler for a highly static language with a capable generics system (C++), and a path-sensitive static analysis engine (the Clang static analyzer). Furthermore, the goals for Swift’s design was to build something that was as easy to learn and use as a scripting language, but which had enough power to be used as a system’s programming language.\n\nSwift was the perfect language, because of its performance, modularity, easy to read syntax and concurrency APIs. Swift aims to maximize clarity of code, and thus it fights to reduce boilerplate. The top-end goal of Swift is to optimize the time it takes to write and maintain the project, which includes debugging time and other things that go beyond just pounding out the code.\n\n### Goal\nEuler aims to provide provide the building blocks of numerical computing in Swift, as a set of fine-grained modules bundled together into a single Swift package. Euler is intended to be used to experiment with Swift and with its math capabilities. It also aims to serve as an algorithm database that could be ported to other languages.\n### Organization\nEuler is built around two main objects: `BigDouble` and `BigInt`. They are both used to represent big numbers with precision. You can see Euler as a set of modules:\n- Numerics: `BigDouble` / `BigInt` \u0026 more\n\t\u003e Helps to work with numbers\n- Algebra: `Expression`\n\t\u003e Helps parsing and working with mathematical expressions\n- Tables\n\t\u003e `Tables` was made for developing Excel-like software / parser.\n- Statistics\n\t\u003e `Statistics` was designed to help with the mathematics of the collection, organization, and interpretation of numerical data, especially the analysis of population characteristics by inference from sampling.\n\n- Visualisation \u0026 Geometry (`Graph`)\n\t\u003e Utility for visualizing any set of `Point` using SwiftPlot.\n- Matrix \u0026 Vectors\n\t\u003e Simple Matrix/Vector type. :warning: It only works on Apple devices, where \t`Accelerate` is supported.\n- Cryptography\n\t\u003e Basic crypto algorithm implemented. We don’t recommend using this in production as this is more for experimental purpose.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farguiot%2Feuler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farguiot%2Feuler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farguiot%2Feuler/lists"}