ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 19 Apr 2011 12:31:10 +0200Physics constants in sage.https://ask.sagemath.org/question/8082/physics-constants-in-sage/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
indiajoeTue, 19 Apr 2011 09:00:14 +0200https://ask.sagemath.org/question/8082/physics-constants-in-sage/Answer by niles for <p>Hi,</p>
<p>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..</p>
<p>-Thanks</p>
<p>indiajoe</p>
https://ask.sagemath.org/question/8082/physics-constants-in-sage/?answer=12301#post-id-12301Aside: Sage does have functionality for [units](http://www.sagemath.org/doc/reference/sage/symbolic/units.html), so hopefully defining the constants you need is just a matter of multiplying by the appropriate scalar.Tue, 19 Apr 2011 09:28:06 +0200https://ask.sagemath.org/question/8082/physics-constants-in-sage/?answer=12301#post-id-12301Answer by Felix Lawrence for <p>Hi,</p>
<p>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..</p>
<p>-Thanks</p>
<p>indiajoe</p>
https://ask.sagemath.org/question/8082/physics-constants-in-sage/?answer=12302#post-id-12302Scipy, 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](http://docs.scipy.org/doc/scipy/reference/constants.html)Tue, 19 Apr 2011 10:26:47 +0200https://ask.sagemath.org/question/8082/physics-constants-in-sage/?answer=12302#post-id-12302Comment by indiajoe for <p>Scipy, included in sage, has these constants:</p>
<pre><code>sage: from scipy.constants import h, k
sage: h
6.6260693000000002e-34
sage: k
1.3806505000000001e-23
</code></pre>
<p>More details about what is in <code>scipy.constants</code> is available <a href="http://docs.scipy.org/doc/scipy/reference/constants.html">here</a></p>
https://ask.sagemath.org/question/8082/physics-constants-in-sage/?comment=21821#post-id-21821Thanks a lot...Tue, 19 Apr 2011 12:31:10 +0200https://ask.sagemath.org/question/8082/physics-constants-in-sage/?comment=21821#post-id-21821Comment by DSM for <p>Scipy, included in sage, has these constants:</p>
<pre><code>sage: from scipy.constants import h, k
sage: h
6.6260693000000002e-34
sage: k
1.3806505000000001e-23
</code></pre>
<p>More details about what is in <code>scipy.constants</code> is available <a href="http://docs.scipy.org/doc/scipy/reference/constants.html">here</a></p>
https://ask.sagemath.org/question/8082/physics-constants-in-sage/?comment=21826#post-id-21826Upvoting because (despite?) the fact you beat me by two minutes!Tue, 19 Apr 2011 10:29:36 +0200https://ask.sagemath.org/question/8082/physics-constants-in-sage/?comment=21826#post-id-21826