惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
博客园 - 聂微东
IT之家
IT之家
The Cloudflare Blog
L
LangChain Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
I
Intezer
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
ThreatConnect
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
H
Help Net Security
T
Tenable Blog
WordPress大学
WordPress大学
F
Future of Privacy Forum
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
NISL@THU
NISL@THU
The Register - Security
The Register - Security
A
About on SuperTechFans
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MyScale Blog
MyScale Blog
Malwarebytes
Malwarebytes
博客园_首页
T
Threatpost
C
CERT Recently Published Vulnerability Notes
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
Blog — PlanetScale
Blog — PlanetScale
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
K
Kaspersky official blog
月光博客
月光博客
Jina AI
Jina AI
S
Securelist
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
腾讯CDC
S
Secure Thoughts
V
V2EX - 技术

Scientific American

Experts explain how sunscreen really works—and why better ones may be coming soon Tiny alien-like blue octopus discovered lurking off the Galapagos Islands Ocean census reveals more than 1,100 new species The universe could have 18 possible shapes SpaceX launches Starship V3—the world's most powerful and tallest rocket ever Why lawyers keep citing fake cases invented by AI Far side moon photos reveal hidden lunar minerals in brilliant color Earth’s molten outer core is behaving in chaotic, unexpected ways Rare Ebola-causing Bundibugyo virus is uniquely challenging to treat. Here’s why Span wants to turn homes into mini data centers What will happen if the Milky Way and Andromeda galaxies collide? What is E15 fuel? Why higher-ethanol gasoline could raise summer smog levels Bixonimania’—the fake illness that AI fell for SpaceX scrubs launch of Starship V3—the tallest and most powerful rocket ever built Hidden structural features inside Egypt’s Great Pyramid may have helped it withstand earthquakes, new study finds Hantavirus found in shocking number of Pacific Northwest rodents JWST sees partly cloudy skies on a distant, giant exoplanet A new study says you may need 10 hours of exercise a week. Can that really be possible? Scientists discover why gold doesn’t ‘rust’ NOAA predicts quieter Atlantic hurricane season for 2026—but the Pacific is another story Trial of next-gen weight-loss drug retatrutide brings it one step closer to FDA approval AI just solved an 80-year-old ‘Erdős problem,’ and mathematicians are amazed Can math predict the end of humanity? Inside the ‘doomsday argument’ Watch SpaceX launch Starship V3—the tallest and most powerful rocket yet Daddy longlegs are actually bloodthirsty killers—of frogs Startup reveals ‘artificial egg’ to resurrect extinct birds, but scientists say the work misses the point Screen time limits can protect children’s health, U.S. surgeon general advisory says An Ebola outbreak is spreading fast. Should you be worried? These bizarre fossils represent some of the earliest moving, sexually-reproducing life ever discovered Vaccines for Bundibugyo Ebola virus outbreak are being developed, but none are ready yet NASA’s Psyche captures gorgeous Mars crescent photo on way to asteroid The Colorado Avalanche is dominating the NHL—Denver’s high elevation could be the reason NASA’s plan for a nuclear reactor on the moon could change space exploration forever—if it works Did the last common ancestor of humans and apes walk like a gorilla? A new study offers a clue Summerlike heat is breaking records in the East. Here’s why The U.S. just experienced its hottest 12 months on record SpaceX punts Starship V3 launch to May 21 as investigation opens into Starbase worker’s death What it’s like being stuck in a hantavirus quarantine for six weeks ‘Sensational’ proof topples decades-old geometry problem New NASA Hubble image captures a rare, turbulent galaxy Scientists race to develop Ebola drugs as outbreak surges Math Puzzle: Fix the matchstick equation Female beast hunters battled leopards in ancient Rome A field guide to quantum computer qubits June 2026: Science history from 50, 100 and 150 years ago The Riemann hypothesis is a million-dollar math problem hardly anyone is trying to solve Poem: ‘Horseshoe Crab’ Which problems will quantum computers solve—and when? A real quantum leap New high‑resolution map transforms what we know about Roman roads and the Roman Empire Quantum computing is reaching its make-or-break moment NASA dreams of a nuclear power plant on the moon. Here’s why How commercial satellites are changing modern warfare Helion Energy is building a fusion power plant. Can its technology deliver? New ways to keep from losing muscle on Ozempic Readers respond to the February 2026 issue Science Crossword A lamp flickering on and off inspires the math mystery of Thomson's lamp Ebola outbreak triggers U.S. ban on travelers from three African nations How scientists developed a hantavirus PCR test in a weekend Inside the race to develop a hantavirus PCR test Hidden copy of the oldest known poem in the English language leaves researchers ‘speechless’ The world is less prepared for a pandemic than before COVID. Here’s why See a Lincoln Memorial-sized asteroid pass within just 56,000 miles of Earth today Trump administration ousts top NIH infectious disease leaders The programmer whose code underpins the Internet How marijuana rewires the teenage brain Hantavirus cruise ship, PCOS name change, a fish that hides in another animal’s ‘butthole’ Did Homo erectus and Denisovans mate? Tooth proteins hint at ancient trysts This small rodent is at the center of theories about the hantavirus outbreak These ants navigate with a compass tuned to the moon NASA reveals new clues to 2027’s Artemis III, the final test mission before a moon landing Scientists catalog the ‘fractal dimensions’ of more than 130,000 islands Hantavirus can persist in semen for years, but that doesn’t mean it remains contagious A real Mr. Snuffleupagus? Meet the ocean’s strangest new fish species This startup wants to make drugs in orbit. If it succeeds, it could transform the space economy How to arm yourself against hantavirus misinformation Can plants have consciousness? The film Silent Friend reimagines the science Asking AI to explain your medical results? What doctors want you to know Microbe ‘cities’ may solve a key ocean mystery Are astronomers ignoring some of the cosmos? Why Black women are at greater risk for fibroids and endometrial cancer To celebrate Endangered Species Day, meet the scaly-foot snail, the most metal animal in the world U.S. Supreme Court allows mifepristone by mail—for now There’s an 82 percent chance El Niño will ‘emerge soon,’ NWS says ‘Golden rule’ in abstract art just discovered by mathematicians Implantable ‘living materials’ that deliver drugs on demand could help fight infections Doubts grow over theory that bird-watchers' trip to Argentine landfill sparked hantavirus outbreak NASA’s Psyche mission is snapping photos of Mars on its way to an asteroid Can helium-3 create a ‘gold rush’ on the moon? The war in Iran is supercharging an ecological crisis in the Persian Gulf Deep-Earth diamonds reveal trove of never-before-seen minerals Depression scales may not work the same for highly intelligent people 2026 FIFA World Cup players and fans at risk of extreme heat, climate scientists warn Almost half of the objects in Earth's orbit is junk—and that's only the stuff we know about Can hantavirus spread through the air? What we do and don’t know Americans are increasingly open to using psychedelics for medical reasons 59,000-year-old Neanderthal tooth may be oldest evidence of dentistry Radar picks up on bird migration. But how do we tell birds and storms apart? Are attention spans really shrinking? What the science says Baby ‘cosmic fossil’ galaxy brings JWST closer to glimpsing the universe’s first stars
How mathematicians use Minecraft to calculate pi
2026-05-25 · via Scientific American

The blockbuster game Minecraft depicts a world created by cubes: everything is made of discrete building blocks. It may therefore seem particularly unsuitable for calculating pi (π), the mathematical constant that equals the ratio of a circle’s circumference to its diameter. To determine the infinitely many, never-repeating decimal places of this irrational number, one must use the shape of a perfect circle that has no corners or edges.

Yet mathematicians Molly Lynch of Hollins University and Michael Weselcouch of Roanoke College have found a way to determine the mathematical constant’s value of 3.14159... as accurately as possible within the Minecraft world.

If you—like me—are only vaguely familiar with Minecraft, here’s a brief explanation: in this “sandbox” game, you can move relatively freely through the blocky world and build various structures, such as buildings or circuits, from cube-shaped elements. To do this, you have to gather resources and process those raw resources into new materials and items.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


The many freedoms offered by Minecraft’s gameplay allow players to be creative. Past players have demonstrated that Minecraft is Turing complete, meaning that any computer program can be implemented within the game. Users have even managed to program a playable version of Minecraft within the game itself!

Knowing this, it’s no longer too surprising that the mathematical constant pi can also be calculated in Minecraft. If any computer program can be implemented in the game, then so can one that outputs the value of pi. Translating an algorithm into the game world is usually extremely complex, however. It requires translating all the instructions a computer follows on an electrical level—clear the register and insert a new value, process values from registers x and y using a logical AND operation, and so on—into a Minecraft action. A simple algorithm can quickly escalate into thousands of different in-game instructions.

Lynch and Weselcouch wanted to avoid that. Their goal was to make mathematics appealing to young people, and they thought Minecraft was a perfect vehicle with which to do so. In a 2024 paper they presented several methods for calculating well-known mathematical constants such as pi in the popular video game—all done without too much effort.

Throwing Darts at a Board

The two researchers first needed a method for calculating pi that could be easily implemented in Minecraft. They opted for the well-studied darts technique.

Imagine you play darts about as well as I do—which is to say, very badly. In this thought experiment, you’re throwing darts at a circular board mounted to a square area of wall. You’ll definitely hit somewhere within the square area of wall but not necessarily the circular dartboard. Because you’re not particularly skilled at throwing darts, it’s pure chance whether the dart lands on the circular board or on the wall outside of it; in other words, it’s equally likely to hit anywhere within the total area of the square. If you throw enough darts, you can approximate the value of pi.

Why is this the case? Let’s assume the square has a side length of two meters and covers an area of four square meters. That would make the diameter of the circle two meters as well, giving the circle a radius of one meter and thus an area of π square meters. Therefore, if the darts are randomly distributed within the square, there is a probability of π4 that they will land within the circle. By counting the darts within the circle and dividing by the total number of darts thrown, the result should be close to π4. Multiply that result by four, and you have an approximation of pi.

Lynch and Weselcouch implemented precisely this clever technique for approximating pi in Minecraft in 2024. They first approximated a circular structure within the game using red blocks with a “radius” of 11 blocks. They then surrounded the red blocks with blue blocks, resulting in a red approximate circle enclosed within a blue square.

Next they generated random events in the game that functioned similarly to the darts hitting the target in the darts example. To do this, the pair used a Minecraft creature known as a slime. Unlike other creatures in the game, “slimes continue moving when no players are nearby and they change direction at random,” Lynch and Weselcouch explain in their paper. They paired the slimes with a second type of creature, called zoglins, which kill slimes.

With these two creatures, Lynch and Weselcouch were able to generate random events that could be tracked in-game without direct observation. By covering the red circle with funnel-shaped blocks called hoppers, which automatically collect objects that fall directly on top of them, the researchers created a way to get a signal for each slime’s death: every time a slime was killed, it dropped items that were collected by a hopper. By dividing the number of slimes killed within the circle (or the number of items collected by hoppers within the circle) by the total number of creatures killed (or the number of items collected by all hoppers on the square), one can obtain an approximation of π4.

The two researchers tested their method in the game. During their test run, a total of 619 slimes were killed, 508 of which were killed inside the circle. These data allowed them to obtain the following approximate value for pi:

π ≈ 4 × (508 / 619) = 3.283

By the authors own admission, this isn’t a particularly good approximation of pi. They provide two ways to improve their method: enlarging the area of the square, and thus the area of the circle, and increasing the number of slimes killed within that total area. Enlarging the circle improves accuracy by better approximating a true circle. And the darts technique—which is formally called the Monte Carlo method—becomes more accurate when more random events are generated. In the Minecraft case, that means sending even more slimes and zoglins into battle.

This method of calculating pi will never be truly efficient, as Lynch and Weselcouch themselves admit. But efficiency is not their goal: it’s to inspire people, particularly young people, with mathematics. A Minecraft battle between slimes and zoglins is probably far better suited to that than a highly optimized algorithm.

This article originally appeared in Spektrum der Wissenschaft and was reproduced with permission. It was translated from the original German version with the assistance of artificial intelligence and reviewed by our editors.

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.