Ask Your Question

Physics constants in sage.

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

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 03:26:47 -0600

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 03:29:36 -0600 )edit

Thanks a lot...

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

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

niles gravatar image

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

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 02:00:14 -0600

Seen: 1,120 times

Last updated: Apr 19 '11