【问题标题】:Integrate function in polar coordinates sciPy在极坐标sciPy中积分函数
【发布时间】:2014-02-23 07:17:21
【问题描述】:

例如,我有一个函数,定义在极坐标中,它可能是这样的:

r = a*b/sqrt((b*cos(f)^2) + (a*sin(f))^2) 
# ellipse in polar coordinates,
# when center of ellipse is polus 
# and bigger axis is polar axis
# f is angle, r is distance

如何在 sciPy 中找到例如椭圆线的长度?

非常感谢。

【问题讨论】:

    标签: python math numpy scipy sympy


    【解决方案1】:

    好像你想计算一个arc length。如果您只查看省略号,则解决方案是 known,您可以使用 SciPy 的 scipy.special.ellipeinc() 或 SymPy 的 elliptic_k() 函数。

    如果您对更通用的方法感兴趣,您的集成方案的选择可能会因函数的属性而异。

    【讨论】:

      猜你喜欢
      • 2016-12-20
      • 2017-11-02
      • 2015-03-30
      • 1970-01-01
      • 1970-01-01
      • 2021-01-03
      • 2016-05-16
      • 1970-01-01
      • 2018-05-10
      相关资源
      最近更新 更多