Ask Your Question

Physics constants in sage.

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

indiajoe gravatar image


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..



edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

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
sage: k

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

edit flag offensive delete link more


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

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


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

Seen: 2,500 times

Last updated: Apr 19 '11