Navigation

    云、贵、川、渝IT人的圈子
    • Register
    • Login
    • Search
    • 主页
    • 问答
    • 话题
    • 热门
    • 圈子
    • 招聘
    • 活动
    • 项目

    Swift的数学计算API-Swift-Numerics

    开源推荐
    1
    1
    24
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      caimiu49 last edited by

      Swift Numerics 是用于 Swift 的 Numerical API(数学计算),旨在填补标准库现有 API 中的一些重要空白,并为 Swift 编程开拓新领域。它内置了两个呼声甚高的数学计算模块,分别是实数模块(Real Number)和提供复数运算的复数(Complex Number)模块。

      实数模块定义了三个协议。最通用的是ElementaryFunctions,它提供以下函数:指数函数:exp,expMinusOne;对数函数:log,log(onePlus:);三角函数:cos,sin,tan;反三角函数:acos,asin,atan;双曲函数:cosh,sinh,tanh;反双曲函数:acosh,asinh,atanh;幂函数和根函数:pow,sqrt,root。

      复数模块则是创建于基础实数类型之上(官方说法是复数模块基于实数模块构建)。我们都知道复数在数学计算中经常会用到,尤其是在进行傅立叶转换的时候,处理音频或是电路仿真时都会用到复数。

      项目地址: https://github.com/apple/swift-numerics

      2e6ff306-3d3a-4d04-8075-bb6826923fe2-image.png

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      C
      8
      玻
      U
      A
      大
      A
      青
      黑
      低
      天
      白
      快
      爱
      白
      美
      此
      荒
      为
      哭
      柳
      无
      真

      社群
      昆明网页设计交流吧
      友情链接
      • Funtask
      • Funtask 社区
      • SUWIS
      • 云南北大青鸟
      ©2019-2020 滇ICP备20006698号