Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taketo1024/swm-core
Pure Math in Pure Swift.
https://github.com/taketo1024/swm-core
algebra mathematics swift topology
Last synced: about 6 hours ago
JSON representation
Pure Math in Pure Swift.
- Host: GitHub
- URL: https://github.com/taketo1024/swm-core
- Owner: taketo1024
- License: mit
- Created: 2016-03-10T07:28:59.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-09-30T06:51:32.000Z (about 3 years ago)
- Last Synced: 2024-08-04T00:05:55.172Z (4 months ago)
- Topics: algebra, mathematics, swift, topology
- Language: Swift
- Homepage:
- Size: 4.21 MB
- Stars: 191
- Watchers: 10
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Swift-Playgrounds - Abstract Algebra - Abstract algebra concepts implemented in Swift. (Mathematics / SpriteKit)
README
# SwiftyMath
The aim of this project is to understand Mathematics by realizing abstract concepts as codes. Mathematical axioms correspond to `protocol`s, and objects satisfying some axioms correspond to `struct`s.
# Submodules
* [SwiftyHomology](https://github.com/taketo1024/SwiftyMath-homology)
* [SwiftyTopology](https://github.com/taketo1024/SwiftyMath-topology)
* [SwiftyKnots](https://github.com/taketo1024/SwiftyMath-knots)# Getting Started
```shell
$ swift run --repl
``````
1> import SwmCore
2> let a: Matrix3x3 = [1,2,3,4,5,6,7,8,9]
3> a.determinant
```# Samples
* [Numbers](Playgrounds/Numbers.playground/Contents.swift)
* [Matrix](Playgrounds/Matrix.playground/Contents.swift)## License
**Swifty Math** is released under [MIT license](LICENSE).