Ask Your Question
0

Arbitrary Precision Physics Calculation

asked 2012-02-15 15:10:52 +0100

russ_hensel gravatar image

I would like to do some physics problems in high precision. I cannot find any examples or sample worksheets that are accessable on a basic level. I just want real numbers ( including large and small in scientific notation ) I am pretty sure this is not too hard, perhaps it is too simple to be explained? Any help would be appreciated.

edit retag flag offensive close merge delete

Comments

Perhaps it would help if you described one specific problem that you are working on.

Mike Witt gravatar imageMike Witt ( 2012-02-16 15:04:24 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-15 17:07:15 +0100

kcrisman gravatar image

Your question is a little vague. We do have arbitrary (fixed) precision real and complex numbers.

sage: R = RealField(1000)
sage: a = R(5.0000001^5.0000001)
sage: a
3125.00081544945942368940450251102447509765625000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
sage: a^5-log(1/a)+e^sqrt(a)
1.89584501327280735942937534086913418233822028367104009709035254982102232998750469378667609600087589163781468732285228512947454542091917091499584315533762570369369905169521733670930846238772029824301668021456411893832087472189344604700518827443459286621575319448702380078978194800389265094467157413734e24

See RealField? for more info.

edit flag offensive delete link more

Comments

1

By messing around I got my calcs to work, and are consistent with the above. I just find this, and even more the published material a bit abstract, and I was looking for just a bit more. I may publish a worksheet for others in the future which will illustrate these basic features.

russ_hensel gravatar imageruss_hensel ( 2012-02-16 15:05:54 +0100 )edit

That would be great! It's possible there is stuff out there, but I just wasn't sure what you were looking for.

kcrisman gravatar imagekcrisman ( 2012-02-16 22:38:10 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-02-15 15:10:52 +0100

Seen: 814 times

Last updated: Feb 15 '12