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

推荐订阅源

宝玉的分享
宝玉的分享
T
Threat Research - Cisco Blogs
H
Hacker News: Front Page
N
News and Events Feed by Topic
Know Your Adversary
Know Your Adversary
Cisco Talos Blog
Cisco Talos Blog
SecWiki News
SecWiki News
C
Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tor Project blog
K
Kaspersky official blog
Forbes - Security
Forbes - Security
Webroot Blog
Webroot Blog
Schneier on Security
Schneier on Security
P
Privacy & Cybersecurity Law Blog
H
Heimdal Security Blog
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
V
Vulnerabilities – Threatpost
T
Tenable Blog
T
Tailwind CSS Blog
P
Privacy International News Feed
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
博客园 - Franky
Hacker News: Ask HN
Hacker News: Ask HN
Jina AI
Jina AI
C
Cybersecurity and Infrastructure Security Agency CISA
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
雷峰网
雷峰网
Vercel News
Vercel News
A
About on SuperTechFans
爱范儿
爱范儿
Simon Willison's Weblog
Simon Willison's Weblog
AWS News Blog
AWS News Blog
The Last Watchdog
The Last Watchdog
Engineering at Meta
Engineering at Meta
Spread Privacy
Spread Privacy
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 司徒正美
量子位
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Martin Fowler
Martin Fowler
Project Zero
Project Zero

Scientific American

Former deputy surgeon general Erica Schwartz nominated as new CDC chief NASA Artemis II astronauts say thank you to the world Congress grills RFK, Jr., about vaccines and cuts to health budget How the Grand Canyon formed is a surprisingly messy story. Here's the latest clue How far from humanity were the astronauts of Artemis II? The answer will surprise you Effect of antiamyloid Alzheimer’s drugs ‘absent or trivial,’ Cochrane review finds The Trump administration is looking to experts to weigh in on peptides When a naked mole rat queen dies, that usually means war—but not for this colony NASA needs nuclear power for its moon base. Here’s the White House plan to get it Why do older people have fewer seasonal allergies? 250-million-year-old fossil proves mammal ancestors laid eggs A face-swapping illusion can unlock childhood memories 30 years of Pokémon—how the Japanese franchise mirrors real-world science Sperm whales may make their own vowel sounds, similar to human language Colombia will euthanize Pablo Escobar’s invasive ‘cocaine hippos’ NASA’s Artemis III will pit SpaceX against Blue Origin The East Coast could see blazing hot temperatures this week. Here’s why Scientists just discovered 5.6 million bees under a New York State cemetery The real science of Pokémon How chemists engineer the signature smells of luxury perfumes How two mathematicians solved a cryptography mystery The engineering marvels hidden inside six-figure watches Expensive versus affordable binoculars—what’s the difference? How physicists found a new type of magnet hiding in plain sight A hot pair of supplements, creatine and methylene blue dye, may not work together Unlikely paths to discovery The baffling ecological disaster that's killing America’s freshwater mussels Poem: ‘How I Became a Spitfire Pilot during My Cataract Operation’ DARPA built an AI to fact-check enemy weapons claims Mathematicians created an ‘impossible’ shape that shouldn’t exist How cosmic rays are helping mining companies find critical minerals underground New evidence links heart disease to inflammation—and drugs can stop it An asteroid extinguished all the dinosaurs except for birds. Here’s why Math Puzzle: A disassembly job May 2026: Science History from 50, 100 and 150 Years Ago Readers respond to the January 2026 issue How to build a space hotel The humble ham sandwich inspired a math theorem for sharing food fairly Imperiled ‘cloud jaguar’ spotted in Honduran mountains for the first time in a decade Person functionally cured of HIV after bone marrow transplant from sibling Dream Chaser space plane faces uncertain future in NASA’s push for the moon Bizarre ‘compleximers’ break the rules of both glass and plastic This method to reverse cellular aging is about to be tested in humans The Artemis II mission worked—but should we really keep returning to the moon? How DNA forensics is transforming studies of ancient manuscripts Beetle larvae mimic flower scents to attract bee hosts See NASA’s Artemis II mission around the moon in 12 stunning photos New study shows how the brain weighs evidence to make decisions What NASA’s Artemis II tells us about the ‘overview effect,’ moon joy and awe New metal with triple copper’s heat conduction challenges fundamental physics NASA’s Artemis II reveals why humans still love the moon NASA’s Artemis II moon mission splashes down The Expanse authors James S. A. Corey explore alien war in new book The Faith of Beasts New particle mass measurement deepens quantum mystery NASA’s Artemis II crew returns today—here’s what to know ahead of splashdown Why bombing Iran’s nuclear power plant could cause an environmental disaster Mysterious heart neurons maintain blood pressure to prevent fainting NASA’s Dragonfly mission will send a nuclear-powered flying drone to Titan This sci‑fi twist on Moby-Dick will blow your mind Medieval aurora poetry provided clues to historic solar storms White House budget puts 54 NASA science missions on the chopping block NASA’s Artemis II moon mission is on track for Friday splashdown Timeline of the Artemis II moon mission’s return to Earth Why can’t humans regenerate limbs? New research offers a clue How the wildlife trade boosts the chance of a disease jumping from animals to humans Two hundred chimpanzees are embroiled in a ‘civil war’ NASA’s Artemis II moon mission preps for its last full day in space How China could still win the new moon race Lyme disease is spreading, but a new vaccine could curb infections No, Shroud of Turin DNA analysis doesn't show relic's origins, experts say What’s the deal with the Artemis II music? The crew finally gave us some answers The world’s deepest sensors will detect earthquakes around the world from far below Antarctica Why Artemis II’s reentry may be the moon mission’s greatest challenge yet NASA’s Artemis II moon mission is focusing on its return to Earth What is the quantum ‘Ghost Murmur’ purportedly used in Iran? Scientists question CIA’s claim of long-range heartbeat detection How well GLP-1 weight loss drugs work may depend on your genetics NASA’s Artemis moon missions are a game changer for astronomy Tracking Artemis II—after its historic lunar flyby, NASA’s moon mission heads home NASA’s Artemis program has sparked a race to land U.S. rovers on the moon Do people see robots as having race? New studies clash as humanoids enter the real world Health experts warn of rising measles cases in undervaccinated communities In a first, Artemis II moon mission astronauts make ‘ship to ship’ call to ISS The mathematically correct way to slice a pizza See NASA’s Artemis II mission’s first incredible photos of the moon, Earth and a total solar eclipse In an echo of Apollo 8, NASA’s Artemis II astronauts witness stunning ‘Earthrise’ and ‘Earthset’ NASA’s Artemis II astronauts celebrate epic lunar flyby with stunning new images NASA’s Artemis era may finally solve three major moon mysteries NASA’s Artemis II ‘free return’ trajectory lets gravity do the driving Trump speaks with NASA's Artemis II astronauts after historic moon flyby NASA’s Artemis II crew experience total solar eclipse from space NASA’s Artemis II moon mission reaches greatest distance from Earth NASA’s Artemis II astronauts break Apollo’s distance record Watch live—NASA’s Artemis II’s moon flyby is underway Bypass the Strait of Hormuz with nuclear explosives? The U.S. studied that option in the 1960s NASA’s Artemis II mission is about to pass behind the moon NASA’s Artemis II, endangered species and oil, low western U.S. snowpack Where is Artemis II? NASA astronauts near the moon for first time in more than 50 years NASA’s Artemis II laser communications system is beaming 4K video from the moon NASA’s Artemis II moon mission is gearing up for its lunar flyby What will NASA’s Artemis II astronauts see on the moon?
How mathematicians use Minecraft to calculate pi
Manon Bischoff · 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.