Japanese X-men

Any geek that grew up in the 80’s or 90’s probably remembers the X-men cartoon that was on during the 90’s. The animation wasn’t all that great, but it was still entertaining for this teenager at the time. The intro here may bring back a few memories:

I just saw something that blew my mind though. In a rare exception to the norm, the X-men cartoon was ported and re-dubbed for a Japanese release. Here is the Japanese intro:

First of all, that heavy guitar J-pop totally reminds me of the theme to Fist of the North Star, which I have blogged about before, even starting with “Shock!” which is all too similar to Fist of the North Star’s “You are shock!”. There are also some weird inconsistencies like Magneto summoning the Brood, Cable in power armor, etc., but I’m not familiar enough with the Marvel universe to comment on them.

I can however, comment on the lyrics for the theme song. According to Wikipedia, the song is ライジング (Rising), by the Japanese band アンビエンス (Ambiance). Here are the lyrics and my attempted translation in parenthesis:

Shock! 嘘で固めたナイフ切り付け (Shock! Cut with the knife hardened by lies)
Shock! 夢を飲み込み街は輝く (Shock! Catch the dream as the city shines)
争いや憎しみで その身削られてゆく (The conflict and hatred cut away at you)
真夜中襲いくる 人知れぬまま (They attack unseen in the night)
Break Out!
ライムライト 光るざわめき (Commotion in the limelight)
リアルタイム 濡れた幻 (Real-time wet illusion)
Cry for the moon

The translation is quite hard (for me, at least) because as often happens in song lyrics and poetry in general is that many particles (similar to prepositions, they identify the part of speech the word or phrase is) are completely omitted, so I have to guess what the relationship is between the different words. Those last two lines are the hardest, as they don’t make any sense to me, especially the 濡れた幻 (wet illusion). What in the world is that supposed to mean?

Although, that “Cry for the moon” at the end is pretty awesome.

Posted in Entertainment, Japanese Language | 3 Comments

L. B. Rayne

Sometimes you see something on the interblags that is so awesome you have to share it, even though everyone has probably already seen it before you. This is one of those things. Yesterday I discovered the music videos of L. B. Rayne. He’s like some kind of parody/homage to 80’s adventure movies and electronic music. So far he only has two videos that I can find though. The first is Indiana Jones: The Lost Theme Song:

I first heard about L. B. Rayne over at TR though, where they showed his newest video, Skywalking.

Posted in Entertainment | 2 Comments

Fractal Fun

A couple of years ago I wrote a post where I talked about taking the imaginary number i to it’s own power an infinite amount of times, essentially

\(\LARGE{i^{i^{i^{i^{.^{.^.}}}}}}\).

I showed numerically at least that it converges upon a single value in the complex plane, but then I speculated about what would happen if I did the same for other numbers? I thought it would most likely be a fractal like the Mandelbrot set or the Julia set, but I never got around to actually solving it.

Well, for the class that I’m TA’ing this semester (intro to computing for Chemical Engineers), I got hold of some simple code for making the Mandelbrot set in MATLAB to show the students a fun and interesting example of using for loops. After I did that though, I figured that it would be fairly simple to modify the code to see if taking a complex number to it’s own power created a fractal or not. So my algorithm was the following:

For any point c in the complex plane, let
\(\displaystyle{z_0=c}\)
\(\displaystyle{z_{n+1}={z_n}^c}\).
In the limit as n goes to infinity, if z remains finite, then c is within the set. Otherwise it is not in the set.

Since you can’t really evaluate it to infinity, what you do instead is implement an algorithm where you perform the iteration a large but finite number if times, and see if the iteration stays inside a set radius. So here is my fractal. The first plot shows the the complex plane from -20 to +20 on both the real and imaginary axis:

Here the blue football-shaped region in the center is centered at the origin. These points are considered to be ‘within’ the set, since a large number of iterations did not give numbers that were outside of the convergence radius (I set the number of iterations to 50, and the convergence radius to 1000). Any points that are not that deep blue are considered to be ‘outside’ the set, with the color being an indication of how many iterations it took for that point to leave the convergence radius. The dark red points took the least iterations, with the orange, yellow, green, and light blue areas taking progressively more iterations.

I think the feathery wing structures going in the positive and negative imaginary directions are really interesting. They continue up and down seemingly without end, or at least I didn’t see any end for even large plots that I made. This is in sharp contrast to the Mandelbrot and Julia sets which are confined to a finite area.

But the center looks the most interesting, so let’s get a closeup of that.

There’s a lot of interesting stuff going on in this area, with some really beautiful feathery wings, and a jumbled area that just looks like ‘static’. Here’s a zoom-in that let’s us see a little bit of both better.

Wow. Those feathers really are quite beautiful if I do say so myself. That random static-looking area bugs me though, since random noise really isn’t a feature of fractals. Instead they exhibit more of an ‘ordered chaos’ showing infinite complexity. So for my last image here is a much closer zoom on the static-looking area.

This last image has a width and height of just 0.005. Here we can see that it really is infinitely complex and not just random noise. I did another with a width and height of 0.0005, and it looks very similar, so there is some degree of self-similarity, much like we see in other fractals.

So the only thing this set is missing is a name. In reality probably someone has calculated this set and given it a name, but on the slight chance that no one has, I hereby name it the Bassett set. (How’s that for hubris? I bet Benoit Mandelbrot didn’t name the set after himself, but that someone else named it after him in honor of his discovery)

Posted in Science | Leave a comment

Tower of Hanoi

I was chatting with my brother Porter the other day and he told me how he made a Tower of Hanoi game for his children to play with. It’s a fairly simple game with a well-known binary sequence to solving it, in fact it’s one of the few puzzle games where the God’s Algorithm (a shortest-number-of-moves algorithm that can be mathematically proven) exists and is known. The shortest-path solution takes exactly \(2^n-1\) moves to move the disks from one post to another. Porter mentioned in his next blog post that him and his son then calculated how high of a stack The Flash could do if he could move 1 million disks per second, and concluded that it would still take him longer than the age of the universe to complete the 100-disk version.

That’s a good start, but any self-respecting geek has to take things a notch further. First I needed to derive a formula that let’s me calculate how high of a stack I can complete in a given time given a rate of how many disks per second I can move. The original equation we can rearrange as:

\(\displaystyle{N=\frac{\ln (n+1)}{\ln 2}}\) ,

where N is the number of disks, and n is the number of moves. Then we can replace the n with \(n=\omega t\), where \(\omega\) is the frequency of number of moves per unit of time, and t is the total time. So now our equation is:
\(\displaystyle{N=\frac{\ln (\omega t)}{\ln 2}}\) .

You may notice that I have ignored the \(\small{+1}\). This is because the \(\omega t\) will be so large that we can ignore the the \(\small{+1}\), as it is inconsequential.

This formula let’s us do some basic calculations. If we take t to be the age of the universe in seconds (about \(\small{4.33\times 10^{17}s}\)) then we have the following number of disks we can expect to complete within that time for the given number of disks moved per second:

\(\begin{array}{cc} \omega ,s^{-1} & N,\text{disks} \\ \hline 1 & 58 \\ 10 & 61 \\ 100 & 65 \\ 1000 & 68 \\ 1\times 10^6 & 78 \\ 1\times 10^9 & 88\end{array}\)

So we can see that if an immortal Flash were to move disks for the entire age of the current universe at the rate of 1000 disks/s, then he could only expect to complete a stack of 68 disks. Increasing it to 1 billion disks/s only increases it to 88 disks! Still a far cry from completing 100 disks.

So the next question is what kind of energy/power requirement would we need to move the disks at these kind of rates? First we’ll need to make some assumptions on mass and distance. One typical move is shown in the animated gif below (if someone knows how to set it so that it will repeat more than once, please let me know):

In terms of mechanics, to move the disk from column one to column two the disk has to do six steps: 1) accelerate up until its halfway up the column, 2) decelerate until it comes to a stop having just cleared the column, 3) accelerate horizontally until its halfway to the next column, 4) decelerate until it comes to a stop above the new column, 5) accelerate down until it’s halfway down the new column, and finally 6) decelerate until it comes to a stop in the new position.

Now you may say that we don’t need to decelerate the disk as it reaches its resting point and just let it smack into the resultant stack, but when the speeds become really fast the energy will be enough to obliterate any disk, so we’ll include the final deceleration. We’ll also assume this is done in a vacuum so we can ignore wind resistance, otherwise the heat would be more than enough to ionize the disks (those that have read the well known Physics of Santa will be familiar with this). At some point the acceleration alone will become greater than the structural integrity of the disks, as well as relativistic effects at some point coming into play. We’ll get to those in a moment. For now though, we’ll simplify the 6 steps above by making them all the same length for every step. We can do this by putting the three columns in a triangular arrangement and then saying the disks are thin enough that we can neglect the change in the height of the stack as we make progress. We’ll say the columns are 10 cm apart and 10 cm high, so each of the 6 steps will be 5 cm. Also we’ll say each disk weighs 100 g.

Using classical mechanics (ignoring relativistic effects), the time to complete one step is simply 1/6 of a move, so that is:

\(\displaystyle{t=\frac{1}{6}\omega ^{-1}}\) .

The maximum velocity attained (so that we can know if we’re getting close to relativistic speeds) is:
\(\displaystyle{v_m=\frac{2L}{t}}\) .

The acceleration the disk undergoes (to see of we are overcoming structural integrity) is:
\(\displaystyle{a = \frac{2 L}{t^2}}\) .

The energy required to complete one step is:
\(\displaystyle{E=\frac{2m L^2}{t^2}}\) .

And finally the power required to keep the disks moving is:
\(\displaystyle{P=\frac{2m L^2}{t^3}}\) .

Putting all these together in a handy chart we can see the results.

\(\small{\begin{array}{ccccccc}\omega, s^{-1}& N & t_{step}, s & v_{\max},m/s & a,m/s^2 & E, J & P, W \\ \hline 1 & 58 & 1.67\times 10^{-1} & 0.6 & 3.6 & 1.8\times 10^{-2} & 0.108 \\ 10 & 61 & 1.67\times 10^{-2} & 6 & 360 & 1.8 & 108 \\ 100 & 65 & 1.67\times 10^{-3} & 60 & 3.6\times 10^4 & 180 & 1.08\times 10^5 \\ 1000 & 68 & 1.67\times 10^{-4} & 600 & 3.6\times 10^6 & 1.8\times 10^4 & 1.08\times 10^8 \\ 1\times 10^6 & 78 & 1.67\times 10^{-7} & 6\times 10^5 & 3.6\times 10^{12} & 1.8\times 10^{10} & 1.08\times 10^{17} \\ 1\times 10^9 & 88 & 1.67\times 10^{-10} & 6\times 10^8 & 3.6\times 10^{18} & 1.8\times 10^{16} & 1.08\times 10^{26}\end{array}}\)

And the results are pretty interesting. We can determine what the trends are with the formulas above, and we can see how the various values scale with the frequency by replacing t in the equations with \(\frac{1}{6}\omega ^{-1}\). That gives us the following scaling arguments: \(v_m\sim \omega \), \(a\sim \omega^2 \), \(E\sim \omega^2 \), and \(P\sim \omega^3 \). In other words, if we double the frequency of the steps we will double the maximum velocity, but the acceleration and the energy will change by 4x, and the required power will change by 8x! This comes out to be a huge power requirement for the higher frequencies.

To get an idea of how huge the power requirements become, here are some power equivalents on the same order of magnitude:
To get \(\small{0.1 W}\), you would need the power consumption of about 10 DVD drive lasers.
To get \(\small{100 W}\), you would need the electrical output of a 1×1 m solar panel in full sunlight.
To get \(\small{1\times 10^{5} W}\), you would need the power output of a typical automobile.
To get \(\small{1\times 10^{8} W}\), you would need the power output of a Boeing 777.
To get \(\small{1\times 10^{17} W}\), you would need the total power received by the earth from the sun.
And to get \(\small{1\times 10^{26} W}\), you would need about 1/3 the total power output from the sun.
(All order of magnitude power estimates are from this Wikipedia page.)

How does this highest frequency look with our other limits on velocity and acceleration? We should be OK on velocity, since \(6\times 10^8 m/s\) is still only 1/5 the speed of light, slow enough that we can still ignore relativistic effects. As for the stress that the object undergoes due to acceleration, that’s fairly simple to calculate too. Stress is simply force over area, given in this simple formula:

\(\displaystyle{\sigma=\frac{F}{A}}\) .

Where F is the force and a is the cross-sectional area. We can get the force from Newton’s 2nd law: \(F=ma\). For the area we will need to assume a cross-sectional area of the disks themselves. Assuming the disks are about 3 cm in diameter, that gives about 7 \(cm^2\) in area. Calculating the stress that each disk receives we get the following:
\(\begin{array}{cc} \omega ,s^{-1} & \sigma , \text{Pa} \\ \hline 1 & 510 \\ 10 & 5.1\times 10^4 \\ 100 & 5.1\times 10^6 \\ 1000 & 5.1\times 10^8 \\ 1\times 10^6 & 5.1\times 10^{14} \\ 1\times 10^9 & 5.1\times 10^{20}\end{array}\)

Looking up the strength of various materials, the highest two were for high-impact steel and diamond, both being around 1 GPa \(\left(1\times 10^9\text{Pa}\right)\). So from the table, we could expect to move 1000 disks per second, but the disks would fail due to the acceleration if we tried to go much faster than that.

Assuming that we could make disks out of impossibilium that can take any amount of stress, then for The Flash to complete a Tower of Hanoi with 88 disks, he would need to move 1 billion disks per second at a speed of about 1/5 the speed of light for 10 trillion years, and he would require the constant power output of about 1/3 of the sun (or a series of equivalent-sized stars, since a single star won’t last that long).

That’s it for this post, in the next post I’ll try to include relativistic effects for even faster speeds.

Posted in General, Science | 5 Comments

RSS feeds

Overall, I consider myself to be fairly tech-savvy. I program in multiple languages for my research (right now: python and MATLAB, though I have used C++), I use both windows and linux systems (though I’m still not entirely comfortable in linux I’m getting there), and when I have computer problems both software and hardware I can usually diagnose and fix the problem.

However, when it comes to new trends on the internet, sometimes I can be quite a Luddite. I still have yet to register on facebook/myspace (I can’t remember which one is considered ‘cool’ and which is considered ‘stalker’s playground’), and I have no desire whatsoever to ‘tweet’. I blog is only intermittently updated, and its traffic is somewhere near the bottom of the internet. I’m fine with that, since notoriety on the internet is definitely a two-edged sword.

A couple of days ago though, I finally decided to start using RSS feeds for checking websites. My morning internet routine has grown to include several dozen websites, and many of them only update every few days. There are other sites that update less than once a week, and I always forget to check them by the time the next week comes around. (The ones that update many times a day, like Fark, Reddit, and Digg I had to quit cold turkey. They were just sucking up too much time).

So I broke down and registered on google for their google reader service, and started registering for RSS feeds. It’s amazingly simple and it works very well. I just wish I had tried it earlier. Another thing that I found it is great for is keeping track of the latest research. Not only do many research journals have RSS feeds, but some of the larger databases for scholarly research will let you do an RSS feed on search results, so that if a paper that matches your search criteria is published in any of the journals in their database, they will send a link to you. I think it’s a great idea and I hope I can get a lot out of it.

Posted in General | 2 Comments

Japanese Light Novels

One of the things that I enjoy about going back to Japan for a few weeks each summer is that it allows me go to to the bookstore and purchase some new reading material in Japanese. Now my Japanese is decent but not great (I would guess if I took the Japanese Language Proficiency Test that I could pass the level 3 easily without studying, but I would need to do a bit of studying to pass the level 2), so I can’t just pick up any book and start reading it. For me reading “real” Japanese is still a fairly laborious affair with a dictionary, and it goes pretty slow.

That’s why I like the light novels. They are very similar to young adult fiction here in the U.S. in that they are (more so in the U.S.) generally marketed towards a younger audience, the books are shorter, and the language is simpler than what you would find in a real ‘literature’ novel or a newspaper article or such. Another nice feature is that many of the more difficult words it does contain also have furigana, which gives the phonetic pronunciation of words using kanji, making it easier to read, or at least much quicker to look it up in a dictionary.

What got me started reading them was when Ryoko started buying and reading the novels for Full Metal Panic!, because she loved the anime so much. I started reading them myself and found that although I read them much slower (It can take me several days or weeks to finish what she can do in 4~5 hours) I was able to pretty much fully comprehend everything with frequent help from a dictionary.

So when we went back to Japan, I decided I would try some other series. The problem is though, there is almost too much to choose from. The light novel section in any bookstore is quite large, and is generally surpassed only by the manga section. (Helpful tip: while most bookstores have taken to shrink-wrapping the manga to keep loiterers from spending hours just reading manga in the bookstore, they don’t do that with the light novels. Yet.) Without knowing what to look for, I just kind of chose some at random. (Although I was able to avoid the ones that are more risque, they’re easy to spot by their cover art.)

The three I picked (this was last year) were all the first book from 3 different series. The first was a vampire story called Black Blood Brothers, the second was a high fantasy series called ダークエルフの口付け (Kiss of the Dark Elf), and the third was called とある魔術の禁書目録(インデックス) (A Certain Magical Index).

Those of you in the know on anime will recognize the first and the third since they have subsequently been produced as anime series, but probably not the second since it doesn’t exist in any other form.

This may actually be unfortunate for Black Blood Brothers, because the consensus I’ve heard about the anime (I haven’t seen the anime myself, only the novels) is that it was done cheaply by a low-quality studio and hence pretty much sucked. I think that’s too bad because from what I’ve read so far (the 1st 2 volumes, and there are many more to go) it has a lot of potential. The author sets up a really interesting premise (read the blurb in the wikipedia page linked above) and goes with it. I think this author’s strong point it the action scenes: they were really exciting and fun to read, and I kept on cursing my slow eyeballs, wishing I could read the Japanese faster.

As for Index, the premise is a little strange. The protagonist is your typical “Ordinary High School Student“, but lives in a world where psychic powers and actual magic seem to exist simultaneously. I’ve heard the anime based off of this series was done pretty well, so I’m looking forward to watching it after I’ve read it.

The Dark Elf series has two protagonists: The title character is a dark elf named Bela (they always use the word ‘dark elf’, it seems that the word ‘drow’ has never made it over into Japanese fantasy vocabulary), and Amadeo, your typical young, eager, and inexperienced human male adventurer. I should mention that this story takes pace in the Sword World official campaign world, similar to how here in the US we have fantasy books that take place in the Forgotten Realms or Dragon Lance world. The author spins a very complicated web of intrigue and conspiracy that involves the two characters. In fact it gets so complex that by the second novel in the series, the author provides a diagram so that you can keep track of the characters and their relations with each other. (Oh how I wish the Wheel of Time had such a study aid. A google search for [“wheel of time” “too many characters”] gives 387,000 hits.)

So these books aren’t exactly Nobel Prize quality literature, but they are good for my level of Japanese. I can read them just fast enough that I’m able to stay interested in the story.

Posted in Entertainment | Leave a comment

Translation Party

As a speaker of Japanese and English, I find this hilarious. Translation Party is a site that uses the Google automatic translation to hilarious effect. Now the basis is nothing new. Ever since Babelfish came out, people have been using it to translate phrases from one language to another and then back again to hilarious effect. Where this one differs though, is that it repeats the double-translation until the English phrase it gets back is the same as the one it used in the previous iteration. In other words, it translates until it reaches convergence.

For simple phrases it does pretty well. But for more complicated ones it can come up with some really bizarre results. Here’s a tough one I gave it, a couple of lines from the Camelot song in Monty Python and the Holy Grail:

“In war we’re tough and able, quite indefatigable, between our quests we sequin vests, and impersonate Clark Gable.”

The result? “Patience in the war, KURAKUGEBURU spangles to impersonate a good idea to explore is difficult.”

The all-caps KURAKUGEBURU is just Clark Gable. For the first Eng->Jap step it does a pretty good job translating the proper noun into its katakana equivalent, but evidently the English dictionary does not have Clark Gable in it, so it just leaves it in all caps and anglicizes the Japanese pronunciation.

Posted in Entertainment | Leave a comment

Satogaeri to Imazu, Part 2: The Fukui Prefectural Dinosaur Museum

Except for my quest to find an internet connection, the first few days here in Imazu were pretty uneventful. Usually we’re too jet-lagged to do much anyway, so it’s fine with us. Yesterday though, we took a trip to Fukui Prefecture with Ryoko’s aunt and uncle.

I’ve blogged a little about Fukui Prefecture before a few years ago, when we went to visit the nuclear power plant located on one of the many peninsulas there. Interestingly enough, that is right next to the city of Obama, which has gained some notoriety due to the name of the U.S. President. We didn’t go to Obama (I’ve been there before though when my father came to meet Ryoko’s parents. There isn’t much to the city, to tell you the truth), but I did manage to take the following picture as we were driving through Tsuruga, a nearby town:

That’s an advertisement for Obama Ramen. Unfortunately my timing was a bit off and the right edge is cut off by a telephone pole.

The first place we went to was the Fukui Prefectural Dinosaur Museum. It turns out the only place where dinosaur fossils have been found in Japan are in Fukui Prefecture, and to commemorate it the prefecture has built what I can only call a truly, truly excellent museum. I like to go to natural history museums anywhere I go, and this is one of the best I have ever seen. It’s built inside of a giant metallic sphere, which makes the museum easy to spot from several miles away, and makes for a really impressive ceiling once you get into the main body of the museum.
Continue reading

Posted in Entertainment, Science | 1 Comment

Satogaeri to Imazu Part. 1

Satogaeri (里帰り) means ‘returning to your hometown’, and is used for when you go back to your hometown to visit your family. Ryoko is from a small town of Imazu on the northeast shore of Lake Biwa, about an hour out of Kyoto by train (or about 2 hours if driving).
So, I’m stuck here without the internet. I thought that I would be able to get internet access one way another because this time around I was bringing a computer with me. It has both built-in ethernet and built-in wireless, so I was pretty sure I could get internet access by one of the following methods:
1. Going to the local library.
2. Going to the home of Ryoko’s cousin Akihiro, who lives nearby and has internet access in his home.
3. Going to a Starbucks, Internet Café, or some other similar place with wireless internet available.
Continue reading

Posted in Personal | Leave a comment

Anime Recommendations

Ryoko and I have recently just finished watching an anime series, and we both thoroughly enjoyed it. It’s called Seirei no Moribito, which translates as Guardian of the Sacred Spirit. It takes place in a fantasy world that is strikingly similar to Heian-era Japan. This shouldn’t seem too surprising, since most of Western fantasy takes place in a world that is strikingly similar to medieval Europe.

The one thing that I really, really liked about this series is that it has just about the best production values of any anime I’ve ever seen. All the backgrounds are fully drawn, all scenes are fully animated, and they really went the extra mile on the action scenes. The voice acting is top-notch, and the music is excellent as well. There are some digital effects interspersed which are also done very well.

So don’t take my word for it, here’s a link to watch episode 1 online:

You can see all the episodes online here (scroll down towards the bottom), but to really appreciate how beautifully done this anime is, I would recommend downloading the full series via bittorrent.

After a bit of google searching, it turns out the Moribito was done by Production I.G., the same studio that did the also excellent Ghost in the Shell series.

Also, there is another series that I’m starting, but I can’t give it a full-hearted recommendation like I can for Moribito. It’s called GARO, accompanied by Japanese characters of the same pronunciation that read ‘fanged wolf’. It is not an anime per se, but falls smack withing the tokusatsu genre (i.e. Power Rangers and their derivatives). However, it’s not really a kid’s show, at least not in my opinion. I happily watched last years Power Ranger incarnation, Jyuken Sentai Gekiranger, with my daughters, but there is no way I am letting them see GARO. It is simply way too dark for young children.

One thing that interested me in this series is that the action is done on an obviously limited budget, but I think they do pretty well with what they have. The fighting sequences are what I would describe as ‘anime-esque’ even though it is filmed and not animated. So overall this show is not as high of a recommendation because I have a soft spot for tokusastu shows that most people don’t share, but if you are interested here is the first episode:

Watch Garo ep 1 eng subs in Entertainment  |  View More Free Videos Online at Veoh.com

Posted in Entertainment | 6 Comments