Today I realized by chance that in
the Julia programming language, like in C/C++,
assignment returns the assigned value.
[Read More]
Computing the hexadecimal value of pi
The
Bailey–Borwein–Plouffe formula is
one of the
several
algorithms to compute \(\pi\).
Here it is:
[Read More]
Drawing the analemma with Julia
You may know that if you check the position of the Sun every day in the same place at the same time (accounting for daylight saving time if necessary), you’ll find that it slightly moves. This is a combination of the tilt of the Earth’s axis and the Earth’s orbital...
[Read More]
Rock–paper–scissors game in less than 10 lines of code
Rock–paper–scissors is
a popular hand game. However, some nerds may prefer playing this game on their
computer rather than actually shaking their hands.
[Read More]