Numerical representation
Jon Herman
jfc.herman at gmail.com
Fri Mar 4 17:32:06 EST 2011
More information about the Python-list mailing list
Fri Mar 4 17:32:06 EST 2011
- Previous message (by thread): how to read the last line of a huge file???
- Next message (by thread): Numerical representation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello all, I am new to the Python language and writing a Runge-Kutta-Fellberg 7(8) integrator in Python, which requires an extreme numerical precision for my particular application. Unfortunately, I can not seem to attain it. The interesting part is if I take my exact code and translate it to Matlab code (so I use the exact same process and numbers), I get a far superior precision (the one I am expecting, in fact). This leads me to think I need to call a certain command in my Python script in order to make sure no truncation errors are building up over my integration. Has anyone had similar problems? Is there a difference between how Matlab and Python store numbers, and if so how do I make Python more accurate? I know there is a lot of packages out there, but this in fact overwhelmed me a little bit and seems to prevent me from finding the answer to my question, so I'm hoping someone with more experience will be able to enlighten me! Best regards, Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20110304/a15b9285/attachment.html>
- Previous message (by thread): how to read the last line of a huge file???
- Next message (by thread): Numerical representation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list