在python库numpy 中提供了函数linspace和logspace函数用于生产等差数列和等比数列。

    1.linspace函数生成等差数列

def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):

指定初始值、终止值、数量、是否包含终止值,默认为包含。

 


 

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-02-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-03-01
  • 2022-01-07
  • 2021-08-16
相关资源
相似解决方案