5.7.1 Table of exceptions names

This table gives a list of sympy exceptions generated that could indicate an internal bug in Sympy dsolve.

TableĀ 5.213: List of Sympy dsolve exceptions generated

#

Exception

1

TypeError : bad operand type for unary -: list 
 

2

RecursionError : maximum recursion depth exceeded 
 

3

TypeError : cannot determine truth value of Relational: 2*x**2 < 2*C1*x**2 
 

4

TypeError : NoneType object is not subscriptable 
 

5

ValueError : Expected Expr or iterable but got None 
 

6

TypeError : property object is not iterable 
 

7

TypeError : cannot determine truth value of Relational: -1 < 3*x**3 
 

8

TypeError : cannot determine truth value of Relational: -1 < x**3 
 

9

TypeError : < not supported between instances of NoneType and Zero 
 

10

IndexError : list index out of range 
 

11

AssertionError : [False] 
 

12

KeyError : _y 
 

13

AttributeError : LazyExceptionMessage object has no attribute startswith 
 

14

TypeError : cannot determine truth value of Relational: -1 < exp(2*_X0*I/x) 
 

15

ValueError : x + sin(y(x))**2*tan(y(x)) is not a solvable differential equation in y(x) 
 

16

KeyError : ordered_hints 
 

17

TypeError : cannot determine truth value of Relational: -4*x/(exp(2*_X0*I/x) + 2*exp(_X0*I/x) + 1) - 
 

18

TypeError : < not supported between instances of NoneType and y 
 

19

NonlinearError : nonlinear term: sqrt(-a*b) 
 

20

TypeError : cannot determine truth value of Relational: -1 < x 
 

21

TypeError : cannot determine truth value of Relational: -1 < 2*b 
 

22

TypeError : cannot determine truth value of Relational: -1 < 4*x 
 

23

TypeError : cannot determine truth value of Relational: 2 < -x**2 
 

24

TypeError : cannot determine truth value of Relational: -a*x/_bivariate-cov + b*x/_bivariate-cov < 2 
 

25

TypeError : Symbol object cannot be interpreted as an integer 
 

26

TypeError : Add object cannot be interpreted as an integer 
 

27

TypeError : invalid input: -a 
 

28

TypeError : invalid input: a 
 

29

TypeError : invalid input: 1 - 2*n 
 

30

TypeError : invalid input: 1 - a 
 

31

TypeError : invalid input: 2*a + 1 
 

32

TypeError : invalid input: 1 - a1 
 

33

TypeError : invalid input: 1 - 2*a 
 

34

TypeError : invalid input: 2*a 
 

35

TypeError : cannot determine truth value of Relational: _X0**2 < 2 
 

36

ODEMatchError : nth_linear_constant_coeff_undetermined_coefficients solver cannot solve: nan 
 

37

TypeError : cannot determine truth value of Relational: 2*t**2 < 2*C1*t**2 
 

38

TypeError : cannot determine truth value of Relational: 2*x**2*asinh(x/_X0) < 2*C1*x**2 
 

39

TypeError : cannot determine truth value of Relational: 2 < _X0**2 
 

40

Series solution not supported for ode of order > 2 
 

41

TypeError : argument of type Mul is not iterable 
 

42

ValueError : Rational Solution doesnt exist 
 

43

TypeError : cannot determine truth value of Relational: x > _n + 1 
 

44

TypeError : argument of type NegativeOne is not iterable 
 

45

IndexError : tuple index out of range 
 

46

TypeError : < not supported between instances of NoneType and x 
 

47

TypeError : cannot determine truth value of Relational: n > 1 
 

48

TypeError : invalid input: 1 - (-21 + 4*sqrt(5))/(-1 + 2*sqrt(5)) 
 

49

TypeError : cannot determine truth value of Relational: -exp(2*_X0*I/x) < -1 
 

50

TypeError : cannot determine truth value of Relational: 2*x < -4*x/(exp(2*_X0*I/x) + 2*exp(_X0*I/x) 
 

51

IndexError : Index out of range: a[1] 
 

52

TypeError : Invalid NaN comparison 
 

53

TypeError : Mul object cannot be interpreted as an integer 
 

54

TypeError : cannot determine truth value of Relational: _n < x 
 

55

TypeError : cannot determine truth value of Relational: x > _n + 2 
 

56

TypeError : invalid input: 1 - v 
 

57

TypeError : invalid input: 1 - b/a 
 

58

TypeError : cannot determine truth value of Relational: _n + 2 > x 
 

59

TypeError : invalid input: 2*a + b 
 

60

NotInvertible : zero divisor 
 

61

KeyError : Derivative(y(t), (t, 2)) 
 

62

KeyError : Derivative(y(t), t) 
 

63

ValueError : substitution cannot create dummy dependencies 
 

64

KeyError : F2_ 
 

65

AttributeError : list object has no attribute func 
 

66

TypeError : argument of type Pow is not iterable 
 

67

ZeroDivisionError : polynomial division 
 

68

HeuristicGCDFailed : no luck 
 

69

TypeError : invalid input: 1 - n 
 

70

TypeError : cannot determine truth value of Relational: 18*C1*x**6 < 18*x**6 
 

71

TypeError : Invalid comparison of non-real 1 + sqrt(7)*I 
 

72

TypeError : cannot determine truth value of Relational: _n + 2 > t 
 

73

TypeError : exp takes exactly 1 argument (2 given) 
 

74

ValueError : function with different numbers of args 
 

75

OverflowError : mpz too large to convert to float 
 

76

TypeError : cannot determine truth value of Relational: x**2 < -1 
 

77

PolynomialError : non-commutative expressions are not supported 
 

78

TypeError : cannot determine truth value of Relational: -1 < t 
 

79

TypeError : cannot determine truth value of Relational: 18*C1*t**6 < 18*t**6 
 

80

TypeError : cannot determine truth value of Relational: t > t 
 

81

ValueError : It solves only those systems of equations whose orders are equal 
 

82

TypeError : invalid input: 1 - 2*p 
 

83

TypeError : invalid input: 2*n + 1 
 

84

ValueError : The function cannot be automatically detected for nan. 
 

85

TypeError : cannot determine truth value of Relational: _X0*(-288*t**3 + 864*t**2 - 864*t + 288) < -72*C1**2*t**3 + 216*C1**2*t**2 - 216*C1**2*t + 72*C1**2 + 32*t**6 - 192*t**5 + 480*t**4 - 640*t**3 + 480*t**2 - 192*t + 32 
 

86

ValueError :  Input to the funcs should be a list of functions. 
 

87

TypeError : cannot determine truth value of Relational: 2 < 4*sqrt(4*_lambda_ + 1) 
 

88

ValueError : sec(y(x)) is not a solvable differential equation in y(x) 
 

89

NotAlgebraic : Integral(5/4, (t, 0)) does not seem to be an algebraic element 
 

90

ValueError : Exceeds the limit (4300 digits) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit 
 

91

AssertionError : 
 

92

ValueError : Invalid boundary conditions for Derivatives 
 

93

ValueError : ODE -5*sqrt(x) - x*Derivative(y(x), x) - y(x) + Derivative(y(x), (x, 2)) does not match 
 

94

ValueError : ODE x*y(x) + x*Derivative(y(x), (x, 2)) - 2*x + 2*Derivative(y(x), x) does not match hi 
 

95

ValueError : ODE -4*x**2 + (1 - x)*Derivative(y(x), (x, 2)) + (2 - 4*x)*Derivative(y(x), x) - y(x) d 
 

96

KeyError : Derivative(z(t), t) 
 

97

TypeError : cannot unpack non-iterable Dummy object 
 

98

ValueError : ODE x**3*(1 - x**2)*Derivative(y(x), (x, 2)) + x*y(x) + (2*x - 3)*Derivative(y(x), x) d 
 

99

ValueError : ODE x**2*Derivative(y(x), (x, 2)) + (1 - x)*Derivative(y(x), x) + 2*y(x) does not match 
 

100

ValueError : Invalid boundary conditions for Function 
 

101

TypeError : cannot determine truth value of Relational: -1 < x*exp(_X0/x) 
 

102

ValueError : ODE x**2*Derivative(y(x), (x, 2)) - 2*y(x) + sin(x)*Derivative(y(x), x) does not match 
 

103

ValueError : ODE -x**3 + x**2*Derivative(y(x), x) + 2*x*y(x) + x + Derivative(y(x), (x, 2)) - 3 does 
 

104

TypeError : cannot determine truth value of Relational: -1 < 2*x**2 
 

105

TypeError : Half object cannot be interpreted as an integer 
 

106

TypeError : cannot determine truth value of Relational: _n < t 
 

107

ValueError : ODE Derivative(y(t), (t, 2)) + (1 - t)*Derivative(y(t), t)/t + (1 - cos(t))*y(t)/t**3 d 
 

108

ValueError : ODE Derivative(y(t), (t, 2)) + Derivative(y(t), t)/t + (1 - t)*y(t)/t**3 does not match 
 

109

NotAlgebraic : Integral(1, (t, 0)) does not seem to be an algebraic element 
 

110

NotAlgebraic : Integral(-1, (t, 0)) does not seem to be an algebraic element 
 

111

NotAlgebraic : Integral(1, (t_, 0)) does not seem to be an algebraic element 
 

112

NotAlgebraic : Integral(-1, (t_, 0)) does not seem to be an algebraic element