Ask Your Question
5

Physics constants in sage.

asked 2011-04-19 09:00:14 +0100

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 10:26:47 +0100

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 10:29:36 +0100 )edit

Thanks a lot...

indiajoe gravatar imageindiajoe ( 2011-04-19 12:31:10 +0100 )edit
2

answered 2011-04-19 09:28:06 +0100

niles gravatar image

updated 2011-04-19 11:18:42 +0100

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 09:00:14 +0100

Seen: 2,871 times

Last updated: Apr 19 '11