40 lines
603 B
Arduino
Raw Normal View History

2021-05-30 14:16:54 +02:00
//
// FILE: gravity_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: test formulas
// DATE: 2021-05-29
// URL: https://github.com/RobTillaart/relativity
#include "relativity.h"
relativity R;
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("\nSpeed of light (m/s):\t");
Serial.println(R.getC());
2021-06-07 08:51:29 +02:00
for (uint8_t p = 0; p < 10; p++)
2021-05-30 14:16:54 +02:00
{
Serial.print(p);
Serial.print(":\t");
2021-06-07 08:51:29 +02:00
Serial.println(1 - R.gravitationalTime(1, R.getPlanetMass(p), R.getPlanetRadius(p)), 6);
2021-05-30 14:16:54 +02:00
}
Serial.println("\ndone...");
}
void loop()
{
}
2021-12-27 20:50:10 +01:00
2021-05-30 14:16:54 +02:00
// -- END OF FILE --
2021-12-27 20:50:10 +01:00