Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 7
    Instead of doing division (with possible loss of precision), why not just multiply by -1 to go from maxima to minima? Commented Mar 7, 2017 at 6:58
  • I tried to change '1/data' to 'data*-1', but then it raise an error, could you share how to implement your method ? Commented Nov 16, 2018 at 6:40
  • Perhaps because we don't want to require that end users additionally install scipy. Commented Jun 14, 2019 at 23:45