public struct Teilsys1
{
public double age;
public Boolean gravitation;
public double g;
public Boolean hassunsystem;
public Boolean isempty;
public Boolean islifelike;
public const double c = 299.792458;
public const double Hubbleconst = 67.4;
public Boolean islifepossible;
bool continueOnCapturedContext;
public TAlex.MathCore.LinearAlgebra.CMatrix getLieAlgebralementTriplet(int Dimension, TAlex.MathCore.LinearAlgebra.CMatrix t1, TAlex.MathCore.LinearAlgebra.CMatrix t2)
{
TAlex.MathCore.LinearAlgebra.CMatrix matr = new TAlex.MathCore.LinearAlgebra.CMatrix(new double[3, 3]);
int cola = t1.ColumnCount, rowa = t1.RowCount;
int colb = t2.ColumnCount, rowb = t2.RowCount;
int permut = 0;
matr = -matr;
for (int d = 1; d <= Dimension; d++)
{
for (int i = 0; i < rowa; i++)
{
for (int k = 0; k < rowb; k++)
{
for (int j = 0; j < cola; j++)
{
for (int l = 0; l < colb; l++)
{
permut = TAlex.MathCore.LinearAlgebra.CMatrix.SignPermut(matr);
};
}
}
}
matr = TAlex.MathCore.LinearAlgebra.CMatrix.Multiply(matr, permut);
}
return matr;
}
public TAlex.MathCore.LinearAlgebra.CMatrix getKillingForm(int startrow, int endRow, int startCol,int endCol,TAlex.MathCore.LinearAlgebra.CMatrix c1, TAlex.MathCore.LinearAlgebra.CMatrix c2)
{
if (TAlex.MathCore.LinearAlgebra.CMatrix.Trace(c1.Adjoint).IsZero)
{
TAlex.MathCore.LinearAlgebra.CMatrix subm;
TAlex.MathCore.LinearAlgebra.CMatrix liemann = getLieAlgebralementTriplet(8, c1, c2);
subm = liemann.Submatrix(startrow,endRow,startCol,endCol);
} if()
}
public double getdensityparameter(double c)
{
return ((8 * Math.PI * G) / Math.Pow(c, 2)) / (3 * Math.Pow(Hubbleconst, 2));
}
public double getcriticalmassdensity()
{
return (3 * Math.Pow(Hubbleconst, 2) / (8 * Math.PI * G));
}
public double getvacuumdensityUniverse(double Force, double SizeofUniverse)
{
if ((Force / SizeofUniverse) < 1 / 3)
return -(Force / SizeofUniverse) / Math.Pow(Math.PI, 2);
else
return 1;
}
public double getageofUniversev1()
{
return 1.0 / Hubbleconst;
}
public double getsizeofUniverse(double age)
{
return c * age;
}
public enum Universeshape { sperical, flat, hyperbolic }
public string universetype;
public async Task<Boolean> haslifelikedependenciesplanets(Boolean gravitation, Boolean air, Boolean darkmass, Boolean Food, Boolean Carbonoxide, Boolean coalorsilicium)
{
continueOnCapturedContext = false;
if (gravitation == true && air == true && darkmass == true && Food == true && Carbonoxide == true && coalorsilicium == true && age != 0 && hassunsystem == true && isempty == false)
{
if (getdensityparameter(c) != 0)
if (getcriticalmassdensity() == 8.5 * Math.Pow(10, -27))
{
universetype = Universeshape.flat.ToString();
continueOnCapturedContext = true;
islifepossible = await haslifelikedependenciesplanets(gravitation, air, darkmass, Food, Carbonoxide, coalorsilicium).ConfigureAwait(continueOnCapturedContext = true);
return islifepossible;
}
else if (getcriticalmassdensity() < 1)
{
universetype = Universeshape.hyperbolic.ToString();
islifepossible = false;
return islifepossible;
}
else if (getcriticalmassdensity() > 1)
{
universetype = Universeshape.sperical.ToString();
islifepossible = false;
return islifepossible;
}
}
return false;
}
}