scipy.special.eval_hermite 具有复杂的参数

问题描述 投票:0回答:1

scipy.special eval_hermite 函数只支持实参吗?从文档(https://docs.scipy.org/doc/scipy/reference/ generated/scipy.special.eval_hermite.html)中,我认为复杂可以正常工作,而且我也没有看到任何编程原因不应该。但是,我收到以下错误:

scipy.special.eval_hermite(4, 1.j)
# output: TypeError: ufunc 'eval_hermite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

有谁知道这是为什么吗?或者如何解决它?

python scipy polynomials
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.