Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
51

Gauss–Seidel visually explained

from Words and Buttons Online [alt+shift+b] in programming

An interactive demo of the Gauss-Seidel method for solving linear equation systems. When and why does it work? And why, when you flip the equations, it suddenly stop working? You can now play and see.
21st Sep 2025

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Words and Buttons Online

Words and Buttons Online: current hiatus and future plans

Hello! I’m Oleksandr Kaleniuk. I do Words and Buttons Online. Just not too often lately. Last night reminded me that I probably owe my subscribers a “still alive” message. Literally still alive. So here it is. I’m still alive. As for the site, I haven’t written a new piece for about a year and, for the time being, am not planning to do so. The reason is that I’m working two jobs mid-war, and I really have no vigor left for interactive writing. The good news is that I restarted my academic career, and something good may eventually come out of it. I work at the Institute of Nuclear and Thermal Energy (https://dte.kpi.ua/pedahohichnyi-sklad/kaleniuk-oleksandr-serhiiovych/), where I teach numeric methods and explore periodic surfaces and their applications for thermal management. For instance, this is my latest work, code, examples, and whitepaper included: https://codeberg.org/okaleniuk/faitps I also built a tool for online teaching that includes all the visuals from the Words and Buttons, plus many more: https://okaleniuk.codeberg.page/blackboard/. It’s like a slide deck with interactive visuals where you get to form your deck according to your own lecture plan. I do have a lot of material to share. Some classics of numerical methods and mathematical programming, and some really hot insights, straight from the frontier of computational geometry research. So, if I manage to dodge a few more missiles and live to see the impending victory, I will definitely breathe out and come back to writing for Words and Buttons Online. But for now, I have to keep my priorities straight. Stay tuned.

2nd Jul 2026 • 1 votes
Why learn about the golden-section search

An interactive demo of bisection search and golden ratio search algorithms. There is also a motivation to learn them both. Spoiler alert! One converges better, and the other has a better computational cost.

29th Jun 2025 • 51 votes
A smooth and sharp image interpolation you probably haven't heard of

An image interpolation that gives us a continuous and smooth image, where every interpolated value only depends on the four neighboring pixel values. The image becomes smooth, but sharp features remain sharp.

29th Apr 2024 • 89 votes
Rational interpolation

Rational interpolation is a step forward from polynomial interpolation towards rational splines. With rational interpolation, you can build functions that run through a set of points and also have vertical asymptotes whenever you want. With this capability, you can now model functions like logarithms better.

5th Mar 2024 • 84 votes

More in programming

NSRS georeferencing

The US is updating its primary spatial reference system, replacing NAD 83 with NATRF 2022 and other systems.

7 hours ago • 1 votes
Creating Beveled Corners with “corner-shape”

The new “corner-shape” CSS property is incredibly useful, but if we really want to get the most out of it, we need to use some surprisingly-sophisticated tricks. In this post, I’ll share how I’ve used this new property to create a retro-sci-fi aesthetic with diagonal corners everywhere. 📐

11 hours ago • 1 votes
HTML esoterica - en-GB vs en_GB

by Terence Eden Here's a fun little historic mystery for HTML nerds. Most websites report the language they're written in using the lang attribute. <html lang="en-GB"> But on the <meta> element, it's common to see: <meta content="en_GB" property="og:locale"> Why does that use an underscore rather than a hyphen? What is a language anyway? Here's how the lang attribute works: 3.2.6.2 The lang and xml:lang attributes OK, so what is a valid BCP 47 language tag? Language tags permit only the characters A-Z, a-z, 0-9, and HYPHEN-MINUS (%x2D). 6. Character Set Consideration For example, en is English. en-GB is British English and en-CA is Canadian English. The two parts are separated by a hyphen. Where else is language specificity useful? That's not the only way language tags can appear in HTML. If you want your web page to show a little preview when you share it - perhaps on social media or a messaging app - you can use Open Graph Protocol. og:locale - The locale these tags are marked up in. Of the format language_TERRITORY. Default is en_US. Optional Metadata - Open Graph Protocol (Hurrah for American hegemony!) Here's the example it gives: <meta property="og:description" content="Sean Connery found fame and fortune as the suave, sophisticated British agent, James Bond." /> <meta property="og:locale" content="en_GB" /> That says the locale of the tags, not the page, is British English. So you could have a page in the Japanese language but OGP tags written in Cherokee. Now I have two questions. Why doesn't this use the lang attribute? Why does this use an underscore rather than a hyphen? For example, this is valid HTML: <meta property="og:site_name" content="Les Misérables" lang="fr"> <meta property="og:description" content="A book by Victor Hugo." lang="en-GB"> That says the site's name is in French but the description is in English. That will parse perfectly. What's going on with OGP? As I've ranted before, development of Open Graph Protocol is dead. Facebook, who run it, recently reopened their GitHub repo - but only to add a proposed tag. Their discussion forum is full of spam. There's no history of the development, no rationale for why things were chosen, just Facebook's edict. The nearest I can find to an explanation is this Pull Request which references an obsolete page of Facebook's locales. Despite Facebook removing the page, it lives on! Take a look at the documentation for embedded posts. It says: When you load the SDK, change the value of js.src to use your locale. Replace en_US with your locale, e.g., fr_FR for French (France): 'https://connect.facebook.net/fr_FR/sdk.js Which, I think, leads us to the answer. An answer which was hidden in the question the whole time. A language is not the same as a locale. A language only tells you about the language. A locale, by contrast, tells you about the user's preferences. A locale comprises the language, territory, and code set combination used to identify a set of language conventions. These conventions include information on collation, case conversion, and character classification, the language of message catalogs, date-and-time representation, the monetary symbol, and numeric representation. Understanding locale - IBM Do you know if 10/08/12 is the 10th of August or the 8th of October? Is 5.99 describing the cost in a mark, a yen, a buck, or a pound? If you know the locale, you do. So a locale can be more useful than just a plain language. OK, but why does it use an underscore? As far as I can tell, POSIX standardised it in ISO/IEC 15897. It built on a number of older standards. And, for whatever reason, they used the underscore. My final question before I let you get on with your lives - is a locale useful? OGP defines several data types. The date is always in ISO8601 format, so no need for a locale there. Bools, strings, and enums don't benefit from a locale in any way that I can see. What about the new payment property? A locale might be useful there to show currency. Except the specification has: payment:currency - string - The currency code ISO 4217 of the payment. The only thing I can see a locale being useful for is numbers. The thousand separator and decimal mark are different depending on the locale. So it might be useful to display "5,99" or "10.000,32" depending on the page's intended audience. If Facebook were still interested in maintaining OGP, I think that asking them to deprecate og:locale and replace it with lang on specific meta elements would be sensible. So there you have it. A language is not the same as a locale, and an underscore is not the same as a hyphen, and a Facebook recommendation is not the same as a living standard. Right, that's enough yak shaving. I'm sure I was meant to be doing something important… Oh! Yes! Welcome to HTMHell 🎅

22 hours ago • 1 votes
Finish line

Max Verstappen wins the 2026 Mexico City Grand Prix.

22 hours ago • 1 votes
My Favourite Black Friday Deals

For many course creators, the Black Friday holiday period is when we offer the biggest discounts of the year, which means it’s a great time to pick up some of the web development courses you’ve had your eye on! This post is a quick round-up of my top 10 picks.

2 days ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in