Ask Your Question
0

Arbitrary Precision Physics Calculation

asked 13 years ago

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.

Preview: (hide)

Comments

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

Mike Witt gravatar imageMike Witt ( 13 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

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.

Preview: (hide)
link

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 ( 13 years ago )

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 ( 13 years ago )

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: 13 years ago

Seen: 853 times

Last updated: Feb 15 '12