Hi, I want to write a for loop to calculate all possible values, so I declare m=a/b #my test case a/b==3/2 r=np.linspace(0,m,10,dtype=float) for i in range(len(r)): f(Fraction.from_float(r[i]))
where f is some function I write to print out some function space. But I get TypeError: Cannot interpret '1.50000000000000' as a data type Any idea on how why I get the error? If I cast m= float(a/b), I can work it out. However, Fraction.from_float(r[i]) in this case will not result in a fraction. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/94e8b480-807f-4d17-84b1-ff5f4d8cfa67n%40googlegroups.com.