From the documentation:
The arguments to the range constructor must be integers
So to use range
in this case you need to change your code to this:
domainmin=int(input("Min X Value: "))
domainmax=int(input("Max X Value: "))
Or, perhaps closer to what you intend, you can use instead numpy.arange
or numpy.linspace
, so you can use float
ranges - you will have to additionally add granulation parameter (step
for arange
) or number of steps (num
for linspace
).