using System;
using GP = Science.Physics.GeneralPhysics;
namespace ScienceTest.PhysicsTest.GeneralPhysicsTest
{
///
/// EarthTest
///
public class EntropyTest
{
public EntropyTest()
{
}
private string result;
public string Result
{
get{return result;}
}
public void Compute()
{
GP.Entropy S = new GP.Entropy();
GP.Heat Q = new GP.Heat();
Q.DerivativeWithRespectToTemperature
= new GP.Calculus.Function(dqdt);
GP.Temperature Ti = new GP.Temperature();
Ti.K = 30.0;
GP.Temperature Tf = new GP.Temperature();
Tf.K = 50.0;
double ans = S.Difference(Q, Ti, Tf);
result += ans.ToString();
}
private double dqdt(double t)
{
return t * t * t;
}
}
}
// 32666.6666666667