当我尝试运行以下代码时:
import math
from scipy import special as spec
import numpy as np
from sympy import *
y = Symbol('y')
x = spec.hyp2f1(1.5, 2.5, 1, y**2)
ans = x.diff(y)
print ans
我收到错误:
Traceback (most recent call last):
File "calc.py", line 74, in <module>
x = spec.hyp2f1(1.5, 2.5, 1, y**2)
TypeError: ufunc 'hyp2f1' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
问题是什么,有没有其他方法可以象征性地区分函数hyp2f1?
答案 0 :(得分:0)