Evaluating a mathematical [removed]function) for a large number of input values fast

前端 未结 5 1632
你的背包
你的背包 2020-12-09 12:11

The following questions

  • Evaluating a mathematical expression in a string
  • Equation parsing in Python
  • Safe way to parse user-supplied
5条回答
  •  半阙折子戏
    2020-12-09 12:31

    If you are passing a string to sympy.simplify (which is not recommended usage; it's recommended to use sympify explicitly), that's going to use sympy.sympify to convert it to a SymPy expression, which uses eval internally.

提交回复
热议问题