Ruby数学宝石 [英] Ruby mathematic gem

查看:130
本文介绍了Ruby数学宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道数学/几何操作是否有好的宝石?我需要一些这样的东西:


  • 点积

  • 跨产品

  • 向量之间的角度

  • 矩阵

  • 表面正常

  • 向量计算(添加, ...)
  • 奇异值分解




tux p>

解决方案

我强烈推荐 Ruby / GSL 宝石。



您可能需要参考 GSL手册来确定您需要调用的函数的名称,如果没有在Ruby / GSL文档中记录的话。


does anybody know if there is a good gem for mathematic / geometric operations? I need some of this things:

  • Dot product
  • Cross product
  • Angle between vectors
  • Matrix
  • Surface normale
  • Vector calculations (add, substract...)
  • Singular Value Decomposition

thx, tux

解决方案

I can highly recommend the Ruby/GSL gem.

You may need to refer to the GSL manual to work out the name of the function you need to call though, if it's not documented in the Ruby/GSL documentation.

这篇关于Ruby数学宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆