本项目的目的是通过将抽象概念实现为代码来理解数学。数学公理对应于 protocol(协议),满足某些公理的对象对应于 struct(结构体)。
protocol
struct
$ swift run --repl
1> import SwmCore 2> let a: Matrix3x3<Int> = [1,2,3,4,5,6,7,8,9] 3> a.determinant
Swifty Math 使用 MIT 许可证 发布。