Ask Your Question
5

Physics constants in sage.

asked 2011-04-19 02:00:14 -0500

indiajoe gravatar image

Hi,

Are Physics constants like h (planks constant) , k (Boltzmann constant) etc.. available in sage? If yes, how can i use them? When i searched I found only math constants Pi, e etc..

-Thanks

indiajoe

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
7

answered 2011-04-19 03:26:47 -0500

Felix Lawrence gravatar image

Scipy, included in sage, has these constants:

sage: from scipy.constants import h, k
sage: h
6.6260693000000002e-34
sage: k
1.3806505000000001e-23

More details about what is in scipy.constants is available here

edit flag offensive delete link more

Comments

Upvoting because (despite?) the fact you beat me by two minutes!

DSM gravatar imageDSM ( 2011-04-19 03:29:36 -0500 )edit

Thanks a lot...

indiajoe gravatar imageindiajoe ( 2011-04-19 05:31:10 -0500 )edit
2

answered 2011-04-19 02:28:06 -0500

niles gravatar image

updated 2011-04-19 04:18:42 -0500

Aside: Sage does have functionality for units, so hopefully defining the constants you need is just a matter of multiplying by the appropriate scalar.

edit flag offensive delete link more

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: 2011-04-19 02:00:14 -0500

Seen: 1,241 times

Last updated: Apr 19 '11