Python differentiation using numpy not producing expected output

后端 未结 1 965
星月不相逢
星月不相逢 2020-12-21 10:30

So, I am working on some numerical computation. I have calculated some 100,000 points of a function (return_times) only computable numerically, and now want to

相关标签:
1条回答
  • 2020-12-21 11:05

    The docs don't mention it, but coordinate array support is very new, NumPy 1.13. In previous NumPy versions, you can only specify a fixed scalar step value for each dimension.

    NumPy 1.12 has a check to catch non-scalar steps, but NumPy 1.11, which you're on, doesn't notice the array-valued input and silently does the wrong thing by trying to treat the array as a step.

    0 讨论(0)
提交回复
热议问题