Android Open Source - AstroPhysCalc Constants






From Project

Back to project page AstroPhysCalc.

License

The source code is released under:

Apache License

If you think the Android project AstroPhysCalc listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.astrophyscalc;
//ww  w.  j av a  2  s.c o m
public class Constants {

  public static final ValueAndUnits L_SUN =
    ValueAndUnits.create(3.839E26d,
      UnitExpression.create(
          UnitAndDim.create(MassUnit.KG),
          UnitAndDim.create(LengthUnit.M, 2),
          UnitAndDim.create(TimeUnit.S, -3)));

  public static final ValueAndUnits G =
    ValueAndUnits.create(6.67E-11d,
      UnitExpression.create(
          UnitAndDim.create(LengthUnit.M, 3),
          UnitAndDim.create(MassUnit.KG, -1),
          UnitAndDim.create(TimeUnit.S, -2)));

  public static final ValueAndUnits FS_EARTH =
    ValueAndUnits.create(1365d, UnitExpression.create(
        UnitAndDim.create(MassUnit.KG),
        UnitAndDim.create(TimeUnit.S, -3)));

}




Java Source Code List

org.astrophyscalc.AstroPhysCalcActivity.java
org.astrophyscalc.CalcPage.java
org.astrophyscalc.CalcRow.java
org.astrophyscalc.Calculator.java
org.astrophyscalc.Constants.java
org.astrophyscalc.DimensionTest.java
org.astrophyscalc.Dimension.java
org.astrophyscalc.FractionTest.java
org.astrophyscalc.Fraction.java
org.astrophyscalc.LengthUnit.java
org.astrophyscalc.MassUnit.java
org.astrophyscalc.TimeUnitTest.java
org.astrophyscalc.TimeUnit.java
org.astrophyscalc.UnitAndDimTest.java
org.astrophyscalc.UnitAndDim.java
org.astrophyscalc.UnitExpressionTest.java
org.astrophyscalc.UnitExpression.java
org.astrophyscalc.UnitSelectionRule.java
org.astrophyscalc.UnitSelector.java
org.astrophyscalc.UnitSpinnerItem.java
org.astrophyscalc.UnitUtilTest.java
org.astrophyscalc.UnitUtil.java
org.astrophyscalc.Unit.java
org.astrophyscalc.ValueAndUnitsTest.java
org.astrophyscalc.ValueAndUnits.java