Four-Dimensional Space (XI): Geometric Algebra, Quaternions and Spatial Rotation

#Warning: This article contains super advanced content, covering essentially all the basic algebraic theory of four-dimensional Euclidean space. This article emphasizes algebra over geometry, so it may be difficult to understand
This article will introduce a new algebraic system that can “unify” high-dimensional geometry: Geometric Algebra. This algebraic framework encompasses scalars, vectors, multidimensional vectors, as well as various inner products, outer products, and mixed products. It even includes spinors (the culprit that makes electrons need to rotate twice to look the same), spatial rotations, complex numbers and quaternions, various derivative operators in vector fields, and geometric algebra can even give a new definition of determinants…

Introduction

When we discussed magnetic fields in four-dimensional space, we mentioned three multiplication operations between two 2-vectors:

Operation $e_{ij}*e_{ij}$ $e_{ij}*e_{jk}$ $e_{ij}*e_{kl}$
Inner product$\cdot$ 1 0 0
Mixed product$\times$ 0 $e_{ik}$ 0
Outer product$\wedge$ 0 0 $e_{ijkl}$

At that time, we felt that identical letters could be merged and canceled, while different letters were simply written together to form a multidimensional vector, so that each type of n-vector corresponds exactly to one multiplication operation. Let’s define a new multiplication operation to satisfy all the above conditions simultaneously. To distinguish it from inner and outer products, the new multiplication uses no symbol:

  • For vector $\boldsymbol v$, we define $\boldsymbol v^2=\boldsymbol v \boldsymbol v=||\boldsymbol v||$. This is the definition of inner product.
  • Then we “forcibly” incorporate the definition of outer product: for mutually perpendicular vectors $\boldsymbol u$ and $\boldsymbol v$, we define $\boldsymbol u \boldsymbol v = -\boldsymbol v \boldsymbol u$.
  • We further stipulate that this multiplication satisfies associativity and left-right distributivity for any k-vectors $\boldsymbol A$, $\boldsymbol B$: $(\boldsymbol A \boldsymbol B) \boldsymbol C = \boldsymbol A (\boldsymbol B \boldsymbol C) $, $(\boldsymbol A+ \boldsymbol B) \boldsymbol C = \boldsymbol A \boldsymbol C +\boldsymbol B \boldsymbol C $, $\boldsymbol A( \boldsymbol B+ \boldsymbol C) = \boldsymbol A \boldsymbol B +\boldsymbol A \boldsymbol C $.

This new multiplication is the geometric product. For consistency, we define scalars as 0-vectors.

Read More

Four-Dimensional World (7): Electromagnetism

/** In this article, I plan to focus on physics in the four-dimensional world (four-dimensional space + one-dimensional time = five-dimensional spacetime) — specifically electromagnetism. These are theoretical derivations assuming this world also follows some of the physical laws from our world. Although electromagnetism is not as easily accepted as Newtonian mechanics, this analogy is flawless and very natural (or you can consider it all nonsense). We won't discuss quantum mechanics or other physics because their generalization to four-dimensional space has serious problems. **/

In our three-dimensional world, one of the most magical things is the electromagnetic field. Various electromagnetic induction phenomena are three-dimensional and require the right-hand rule in space. Can we analogize these things to four-dimensional space? Of course we can. Readers only need to have studied high school physics to read all content except the last section. If you know university physics and classical Maxwell’s equations without relativity, you can read the entire article (we only consider low-speed non-relativistic physical processes in four-dimensional space in this article, though relativity can actually be generalized to five-dimensional spacetime). Even if you’re not clear on these, it’s okay - I’ll guide you through a review first (physics review -_-). Let’s start with the simplest case: the force between two static charges separated by distance $r$.

Table of Contents

Read More

Minecraft4D 教程

(这篇文章只是一个教程,所以没放进四维世界系列)
Minecraft4D是一个真正的四维空间中的(超立方体)方块沙盒游戏。(如果把时间也算上,就是五维时空!)现在游戏只支持创造模式下的单人游戏。Minecraft4D采用Javascript与Webgl编写,所以只需点开下面的链接就可以玩了。(最好用Google Chrome浏览器,不保证其他浏览器的兼容性,需要使用电脑键盘操作)

Minecraft4D

进入后等待贴图与地形都加载好后就可以看到视野了。你会发现画面分成了几乎一样的左右两个,它们是左右眼的成像用来产生双眼立体视觉,我不会做VR,所以就只有要求你要会做对对眼(斗鸡眼)来看到立体视野画面。如果做不到的话就只有通过按方向键旋转视野以得到立体感了。这篇文章里有详细介绍怎么看这种三维的画面。角落处三个小视图分别是立体视野的截面,单独抽出来以便我们清楚观察。

Read More

Four-Dimensional World (Part 6): Newtonian Mechanics

This series has been imagining a fictional four-dimensional world. No matter how we describe its appearance in words, a world lacking physics is static and non-interactive. So today we’ll study Newtonian mechanics in this world. The construction philosophy of this world is to be as close as possible to our real world, differing only in dimensions, so we can simply copy all the theories from the 3D world. Following 3D game physics engines, we can also write a 4D physics engine. For example, Marc ten Bosch’s 4D Toys is quite good, but the game only allows fixed movement of cross-sections (2024 update: it seems the author later added rotation functionality), and you can’t customize scenes, so I reinvented the wheel and wrote my own.

Preview

If you don’t know what 3D vision is yet, please read the tutorials first and come back:

Here are many 4D physics scenes (more may be added in the future), where you can freely rotate the viewing angle. Unfortunately, besides being able to right-click to fire hypersphere cannonballs, I haven’t thought of better ways to interact with objects. (It’s best to read the explanations below for a better experience)

24-cell Dice (Right-click to fire cannonballs)

4D Building Blocks (Right-click to fire cannonballs)

4D Car (See operation instructions below)

4D Object Rolling and Gyroscopes (Multiple scenes available)

Spheritorus-Spheritorus Chain (Comes apart with movement)
Spheritorus-Torisphere Chain
Spheritorus-Double Torus Chain
Torisphere-Double Torus Chain
Double Torus-Double Torus Chain (One large, one small)

4D Gears (Control panel adjustable speed)
Absolutely Perpendicular Gears Meshing
Double Rotation Synthesizer

Read More

四维世界(四):二维生物视觉

很多文学影视作品里都提及过虚拟的二维平面世界以及其中的生物,因为大家很关注维度变化带来的各种效应,比如物理定律、生物和机械结构设计等。今天我们来看看大家比较忽视的一点,就是二维生物的视觉。我们不停留在描述的层面,而是通过电脑的帮助来真切体验平面生物的第一人称视角。当然我们关心二维人的体验是为了给理解四维生物的视觉做铺垫

二维生物的眼睛

首先我们假设一个二维的世界。这是一个圆形星球,星球上住着二维人。它们的眼睛和我们的一样是通过感受光线来看到物体的。我们假设二维世界也有电磁波(这是可以存在的!只是电场是矢量,而磁场是个标量),我们只会考虑几何光学。光线从哪里发出?当然是通过这个世界中的恒星太阳与其他人造光源发出,注意所有的光线都只能在平面世界内传播。所以我们最常见的笑脸表情可不是一种二维生物——因为笑脸表情的眼睛长在脑子里,接受不到任何光线!嘴巴也在头里面,吃不到东西!所以二维生物的眼睛应该是长在头的表面的。它们眼睛的感光层是一条一维的曲线段,所以它们看到的画面是一维的。
左边的笑脸等“二次元”生物不是二维生物,只是三维生物的投影,右边的才是真二维生物

挑战降维打击

Read More

【Minecraft】 2B2T Survival Diary (Part 2): Joining an Organization and Building a Warehouse

After dying last time, I respawned at the bed in our temporary base. After respawning, hadroncfy and I discussed and decided to travel further through the Nether. The Nether terrain is rugged, so we decided to follow others’ example and tunnel at y=120, as there’s no lava at this height. Shortly after departing, hadroncfy got stuck and disconnected in the Nether. I continued traveling alone in the Nether. After digging for a while, I discovered there’s actually a dense tunnel transportation network around y=120! Following it for maybe two hours, I easily ran 100k blocks! I reached 300k! But at this time, the Avengers Alliance group we joined was distributing lots of supplies near spawn. I decided I couldn’t go any further. Although I had spent several days arduously reaching 200k, traveling through the Nether would only take a day to return, so I felt it wasn’t a loss to go back and return later. So I found a portal, made a bed, placed an ender chest, prepared to sleep, break the bed, and commit suicide. Before suicide, I organized what to put in the ender chest, then typed /kill.
Death count changed from 1 to 2

Read More

【Minecraft】 2B2T Survival Diary: Escaping Spawn in One Go

2B2T (2b2t.org) is an ancient Minecraft server, famous for being unmoderated and chaotic. There are many clickbait titles online that make it sound terrifying: “Veteran player survival rate only 20%! 2B2T Survival Guide, how many days can you survive?” Out of curiosity, I also wanted to challenge myself on this legendary server. I read several posts and saw that many players didn’t last long before dying, but after joining the server, I discovered that as long as you master certain techniques, you can easily survive indefinitely. (Though I was indeed lucky - if I had spawned very close to origin, escaping would have been much more difficult.) I won’t waste time introducing the server as there’s plenty of information online - let me get straight to my experience.

First, this is an international server requiring a legitimate Mojang account (my ID was rakc at the time, now changed to hqak), and the server is crowded, requiring queuing to enter. Before joining, I did some preparation work and read some survival guides. The biggest threat to newcomers is hunger, as there’s no food within several kilometers of spawn.

Read More