At 05:33 PM 11/18/2007, Fredrik Johansson wrote:
>On Nov 19, 2007 2:23 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> > OK, I tried mpmath again, and to my surprise, it went well!
> >
> > ===
> > #!/usr/bin/env python
> > #coding=utf-8
> > from mpmath import *
> > mpf.
At 05:24 PM 11/18/2007, Fredrik Johansson wrote:
>On Nov 19, 2007 2:03 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> > At 04:26 PM 11/18/2007, Fredrik Johansson wrote:
> > >On Nov 19, 2007 1:05 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> > >Hi Dick, I recognize you from python-list, where you had a
On Nov 19, 2007 2:23 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> OK, I tried mpmath again, and to my surprise, it went well!
>
> ===
> #!/usr/bin/env python
> #coding=utf-8
> from mpmath import *
> mpf.dps = 50
> n = 1
> k = 0
> prod = mpf(1)
> while k < 10:
>
On Nov 19, 2007 2:09 AM, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sun, 18 Nov 2007 16:05:15 -0800, Dick Moores <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
> > TypeError: unsupported operand type(s) for /: 'float' and 'Float'
> >
>
>
> What restrict
On Nov 19, 2007 2:03 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> At 04:26 PM 11/18/2007, Fredrik Johansson wrote:
> >On Nov 19, 2007 1:05 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> >Hi Dick, I recognize you from python-list, where you had a question
> >about mpmath.
> >
> >Your code still won't
At 04:26 PM 11/18/2007, Fredrik Johansson wrote:
>Basically, sympy.numerics is an old version of mpmath. The
>sympy.numerics module is not very well integrated in SymPy, slower
>than mpmath, and has a couple bugs that have subsequently been fixed
>in mpmath. In sympycore (http://code.google.com/p/
At 04:26 PM 11/18/2007, Fredrik Johansson wrote:
>On Nov 19, 2007 1:05 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
>Hi Dick, I recognize you from python-list, where you had a question
>about mpmath.
>
>Your code still won't work if you convert the numbers to Floats
>because the Float type in sympy.n
On Nov 19, 2007 1:05 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
> At 03:42 PM 11/18/2007, Dennis Lee Bieber wrote:
> >On Sun, 18 Nov 2007 13:02:01 -0800, Dick Moores <[EMAIL PROTECTED]>
> >declaimed the following in comp.lang.python:
> >
> > >
> > > This gets:
> > > Traceback (most recent call last
At 03:42 PM 11/18/2007, Dennis Lee Bieber wrote:
>On Sun, 18 Nov 2007 13:02:01 -0800, Dick Moores <[EMAIL PROTECTED]>
>declaimed the following in comp.lang.python:
>
> >
> > This gets:
> > Traceback (most recent call last):
> >File "E:\PythonWork\Untitled 5.py", line 20, in
> > term = (e*
from __future__ import division
Here's what I'm trying to do, but using sympy:
=
from math import e
n = 1
prod = 1
k = 0
while k < 1000:
k += 1
term = (e**(1.0/n))/(e**(1.0/(n+1)))
prod *= term
n += 2
print prod, term
10 matches
Mail list logo