Help with sympy, please
Dick Moores
rdm at rcblue.com
Sun Nov 18 19:05:15 EST 2007
At 03:42 PM 11/18/2007, Dennis Lee Bieber wrote:
>On Sun, 18 Nov 2007 13:02:01 -0800, Dick Moores <rdm at rcblue.com>
>declaimed the following in comp.lang.python:
>
> >
> > This gets:
> > Traceback (most recent call last):
> > File "E:\PythonWork\Untitled 5.py", line 20, in <module>
> > term = (e**(1/n))/(e**(1/(n+1)))
> > TypeError: unsupported operand type(s) for /: 'int' and 'Float'
> >
> Seems self-explanatory... try using 1.0 rather than 1
term = (e**(1.0/n))/(e**(1.0/(n+1)))
TypeError: unsupported operand type(s) for /: 'float' and 'Float'
Dick
More information about the Python-list
mailing list