Welcome to code-panda.com! This is the very first post, mostly serving as a test of the new static site setup.
Standard markdown works as expected — bold, italic, inline code, links, and so on.
Blockquotes look like this.
Inline math: $e^{i\pi} + 1 = 0$.
Display math:
$$\int_{-\infty}^{\infty} e^{-x^2} , dx = \sqrt{\pi}$$
The VSOP87 planetary theory sums terms of the form:
$$L = \sum_{k} A_k \cos(B_k + C_k \cdot \tau)$$
where $\tau$ is the time in Julian millennia from J2000.0.
// Compute Julian Day Number from a calendar date
double julianDay(int year, int month, double day) {
if (month <= 2) { year--; month += 12; }
int A = year / 100;
int B = 2 - A + A / 4;
return std::floor(365.25 * (year + 4716))
+ std::floor(30.6001 * (month + 1))
+ day + B - 1524.5;
}
# Same thing in Python
from math import floor
def julian_day(year, month, day):
if month <= 2:
year -= 1
month += 12
A = year // 100
B = 2 - A + A // 4
return (floor(365.25 * (year + 4716))
+ floor(30.6001 * (month + 1))
+ day + B - 1524.5)
More posts coming soon!