Ask Your Question
5

Physics constants in sage.

asked 13 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
7

answered 13 years ago

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

Preview: (hide)
link

Comments

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

DSM gravatar imageDSM ( 13 years ago )

Thanks a lot...

indiajoe gravatar imageindiajoe ( 13 years ago )
2

answered 13 years ago

niles gravatar image

updated 13 years ago

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

Preview: (hide)
link

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: 3,004 times

Last updated: Apr 19 '11