On 11 April 2016 at 03:55, Amy Valhausen <amy.vaulhau...@gmail.com> wrote: > In tried ; > > import mpmath > x = Float("1.4142", 950) > x**6000%400 > > But got the same sort of error message again ; > >>>> x = Float("1.4142", 950) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'Float' is not defined
You need to import Float and nsimplify from sympy with: from sympy import Float, nsimplify Or for these simple examples you could just do from sympy import * to import everything from sympy. For your other questions about float accuracy see the responses from Casevh and myself in the new thread that you started. -- Oscar -- 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 post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxStVWie-%3DE3mcdoDB33hcd6fEL_tV2XB-heMTX86yp2_g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.