2020年11月23日月曜日

研究に関係する元素レビュー

東大CASTの 元素ガチャ 、楽しいですね。駒場祭開催中に機能が追加されてってるのすごい。

後輩がFleetで「研究に関係する元素紹介コーナー」をやってて面白そうだったので私もやってみまようと思います。

  • He
    とても大事な寒剤。ジャボ漬けするだけで4Kまで行けるうえ減圧するともっと冷える。他の寒剤は割とすぐに凍ってしまうのでこうは行かない。
    いつも枯渇しそうになっているので心配。大事なので駒場では回収してリサイクルされています。
  • N
    とても大事な寒剤その2。液化Heはただのデュワー瓶(魔法瓶)だけだとすぐ熱が伝わって蒸発してしまうので、さらに液化N2の中につける二重デュワー瓶にしている。ディフュージョンポンプの冷却材としても使ったりする。
    超伝導のデモ実験にも大活躍ですね。弊研究室ではYBCOは学生実験と対外デモでしか使いませんが。
    また不活化ガスとしてHeやN2が真空系のパージに使われたりもする。
  • C, H, O
    洗浄のためにエタノールやアセトンをよく使います。
  • F
    試料を作るのにすごく強いパルスレーザーが必要なのだが、その発振にFとKrの混合気体が使われている。気体交換でF2ボンベを使うときはかなり緊張する。
  • Ar
    酸化しやすかったり空気中の水分と反応しやすかったりする物質はArやN2で満たされたグローブボックスの中で扱います。
  • Fe
    私の研究のメイン、FeSeの主成分。超伝導は磁場により壊れるなど磁性とは相性が悪いと考えられていましたがFe系超伝導体というモロに磁性元素を含む超伝導体グループが発見されて大ニュースとなったとか。発見から12年経ちましたが今も高温超伝導の原理解明のため研究が続けられています。
  • S, Se, Te
    FeSeのもう一つの主成分。ヒ素を含んでいる他の鉄系超伝導体と比べると安全、ということになっていますが普通に体に悪い。
    周期表の上下ということでSeをSやTeに置換して構造に圧力を加えるなどの効果を導入した物を含めてFeCh(鉄カルコゲナイド)と括られています。
  • Cu
    銅線の導線って同じものを指してていながら違うことを意図していてややこしいですよね。
    鉄系と対をなす高温超伝導体のグループ「銅酸化物系」の中心元素。こっちのほうが総じて転移温度は高い。
  • Ag
    電気伝導率が最高。すごく細かい配線を繋ぐときによくペースト状のものを使う。
  • Au
    錆びない。配線によく使う。50μmや25μmの細線を顕微鏡を覗きながら銀ペーストでつないでいる。
  • Pt
    研究で電気化学反応も扱うのだが、その際の電極としてPt箔を用いる。値段の事は考えない。
  • In
    柔らかく、融点が低い。ハンダの成分として使われるが、ハンダだと超伝導転移して測定に影響がある場合があるためIn単体を融かして使うこともある。
  • Sn
    3.72Kで超伝導を示す。表面の酸化皮膜がジョセフソン接合(超伝導版トンネル効果。普通のトンネル効果よりも厚いスケールの障壁を超えられる他色々な応用例がある)を作るのに丁度いいためちょくちょく使う。
  • Y, Ba
    上記銅酸化物系超伝導体で一番メジャーな化合物YBCO(YBa2Cu3O7-x)の他の構成元素。混ぜて焼くだけで液化窒素温度で超伝導を示すのですごい。(混ぜて焼くだけと言うが混ぜるのが結構重労働である。)弊研究室ではデモ実験くらいでしか作らない。
  • Bi
    同じく銅酸化物系で有名なBSCCO(Bi2Sr2Ca2Cu3O10)はBi系とも呼ばれる。標準試料としてそこそこ測定に使われている。
  • Sr, Ti, Ca, La, Al
    薄膜試料を作るための基板としてSrTiO3, CaF2, LaAlO3などの結晶が使われる。

同じ元素でも人によって見方が違ったりするの、面白いですよね。

みなさんもガチャを回してお気に入りの元素を引いたり引けなかったりしましょう。

2020年11月17日火曜日

三角のプロットマーカーは何形か

Introduction

突然ですが、皆さんはグラフのプロットにはどのマーカーを使っていますか?

だいたいはデフォルトの○や□あたりで事足りると思いますが系列が増えてくると他の形のマーカーを使うことがあるかもしれません。

多くのグラフ描画ツールではオプションとして選べるマーカーの中に△も用意されています。


ところで三角形と言っても色々ありますよね。ぱっと見たところ正三角形っぽいですが果たしてそうなのでしょうか。

また、○や□ならその中心がデータ点だとわかりますが、三角形の中心はどこなのでしょうか。正三角形でないなら重心か垂心か外心か、はたまたそのどれでもない何か[1]なのか、色々と選択肢が出てきます。

本記事では各種グラフ描画ツールで△のマーカーが果たしてどんな形なのかを調べてみました。

グラフ描画ツールによる△マーカーの違い

Excelの場合

以下の図は正方形(青・枠のみ)のマーカーに三角形(オレンジ)のマーカーを重ねて描画したところです。


ご覧の通り、正方形に内接し、底辺の長さと高さが等しい二等辺三角形で、高さの2等分点が中心に位置していることがわかります。

Googleスプレッドシートの場合

一方、Googleスプレッドシートで同じように描画すると、異なった結果が得られます。



正方形とはぴったり重ならず、円にちょうど内接しています。

こちらの△のマーカーは正三角形で、中心は重心になっていることがわかりました。

その他

他のツールも調べてみましょう。

Excelパターン

  • Python matplotlib


Googleスプレッドシートパターン

  • MATLAB

    同じサイズを指定してプロットしています。
    大きさの関係はGoogleスプレッドシートと異なるものの、重心を中心とした正三角形であることがわかります。

  • Geogebra


  • Origin


また、LabVIEWでは三角形のマーカーはありませんでした。

まとめ

△型のプロットマーカーはおよそ2通りのパターンに分けられる事がわかりました[2]

Googleスプレッドシートパターンのほうがなんとなくそれらしい気がしますね。こっちだと下向き▽と重ねたときにいい感じに六芒星になるので私は好きです。

同じ場所に△、▽、大きさの違う3つの○をプロットしたところ

ただ、「中心」の決め方が2通りあることからわかるように、マーカーをおいたとき△だと真のプロット点がどこなのかはっきりしません[3]。実際には中心点に対し点対称な形のマーカーを使ったほうが良いでしょう。

次回は△のマーカーがどれくらい「ズレて」いるのかを検証してみたいと思います。




[1] 余談ですが、「三角形の中心」は2020/9/1現在 39474 種類も登録されている(Encyclopedia of Triangle Centers に登録されたもの。今見てきたら更に増えていた。)ほど多いです。

[2] なお、○と△のマーカーで同じサイズを指定しても大きさの関係がそれぞれ違うのもまた興味深いですね。

[3] 「高さの半分」と「重心」とでは高さの1/6だけ位置にずれが生じます。

2020年11月1日日曜日

「クローバー」の正体

クローバー - 植物の一属・シャジクソウ属の総称。一般的にはシロツメクサを指す。 ― Wikipedia「クローバー」 

 クローバーは日常の中でもそれなりに身近な植物であろう。3つ、または4つの葉を持ち、特に4つ葉のものはその希少性から幸福の象徴としてよく図案などでモチーフとされる。

"クローバー イラスト"でのGoogle検索結果

身体障害者用標識の図案も「四葉マーク」「クローバーマーク」などと呼ばれたりする。

Wikipedia「身体障害者用標識」より

先日実家からの仕送りに使われたダンボールにも"4つ葉"のマークが使われていた。

世田谷自然食品 [1] のダンボール

ところで「クローバー」の和名はシロツメクサである。緩衝材として詰め物にされていたことと小さく白い花がその名の由来である。そのへんの道草にポンポン生えている身近な植物である。

Wikipedia「シロツメクサ」より
この植物をよく見てみると上に挙げた「クローバー」のイラストとは葉の形がまるで違うとこがわかる。3つ葉か4つ葉かはさておき、イラストでは殆どがハート型の葉が書かれるが「本物」は先端が丸まった涙滴型である。
一方、イラストに描かれるハート型の葉を持つ植物も結構そのへんに生えている。先日大学の建物の脇にも繁殖していた。

大学に繁茂していたクローバー(偽)
筆者は小学校の時分は「シロツメクサ」と「クローバー」は別モノであって、クローバーはこのハート型の葉の植物を指すのだと思いこんでいた。明らかに巷のイラストとシロツメクサとは特徴が異なっていたから無理もないね。
しかしWikipediaでも明確にクローバーとはシロツメクサ(を始めとするシャクジソウ属)を指すと言っている。ならばこのクローバー(偽)は何物なのか。

結論を言えばこいつはカタバミである。あ~名前は聞いたことある、それがこれだったのか、とググって納得した。
調べようと思えば一瞬でわかることなのでご存知の方も多いかもしれない [2]。ここまでお付き合いいただきありがとうございます。クローバーもカタバミもだいたい外を歩いているときに見かけるのでなかなか調べる機会がなかったんですよね。


 さて、シロツメクサは マメ目マメ科マメ亜科シャジクソウ属であるのに対しカタバミはカタバミ目カタバミ科カタバミ属とかなり別物である。なぜこれだけ混同されているのだろうか。少し考えてみたい。

1つはアイルランドなどでの「シャムロック」という語の存在である。これももともとはクローバーを指す言葉だったのが、キリスト教の三位一体の概念と結びつき3つ葉の草全般を指して信仰の象徴とされているようである。

もう1つはカタバミの「幸運の象徴たる4つ葉のクローバー」という概念における都合の良さである。カタバミも突然変異により4つ葉の個体を生ずることがあるし、ハート型の葉の形から本家クローバーよりも幸運感マシマシである。
さらにカタバミの近縁種にモンカタバミ [3]というものがあり、これは種として4つ葉であることから観賞用に4つ葉のクローバーの代替品種として販売されている。確定で出るのは強い。希少価値もなにもあったものではなくなってしまうけど。

Wikipedia「モンカタバミ」より

 ブログのネタ埋めのために[4]最近続けて見かけて気になっていた「クローバー」の正体について書いてみた。検索して出てきたクローバーのイラストが予想以上に右も左もハート型だったのでみんな間違ってんじゃんとちょっと安心したけれど、カタバミもかわいいので私は好きです。

2020年10月23日金曜日

JSテスト:ferNANDo

program code


delay: ms


input:


output:



2020年10月20日火曜日

StackEdit5-test3

--- title: StackEdit5-test3 ---

Using LaTeX

Inline LaTeX:Γ(z)=0tz1etdt.\LaTeX: \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
Display LaTeX:Γ(z)=0tz1etdt.\LaTeX: \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
Displaystyle LaTeX:Γ(z)=0tz1etdt.\displaystyle \LaTeX: \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.

$ or $$ 囲い
\\( \\), \\[ \\] 囲い(\ がエスケープされるので二重)

Inline \(\LaTeX: \Gamma(z) = \int_0^\infty t^ {z-1}e^ {-t}dt,.\)
Display \[\LaTeX: \Gamma(z) = \int_0^\infty t^ {z-1}e^ {-t}dt,.\]

Written with StackEdit.

StackEditテスト2

マークダウンで書いてBlogger に投稿できるらしいのでテスト(すぐ消す)

Welcome to StackEdit!

Hi! I’m your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

Files

StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible offline!

Create files and folders

The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the New file button in the file explorer. You can also create folders by clicking the New folder button.

Switch to another file

All your files and folders are presented as a tree in the file explorer. You can switch from one to another by clicking a file in the tree.

Rename a file

You can rename the current file by clicking the file name in the navigation bar or by clicking the Rename button in the file explorer.

Delete a file

You can delete the current file by clicking the Remove button in the file explorer. The file will be moved into the Trash folder and automatically deleted after 7 days of inactivity.

Export a file

You can export the current file by clicking Export to disk in the menu. You can choose to export the file as plain Markdown, as HTML using a Handlebars template or as a PDF.

Synchronization

Synchronization is one of the biggest features of StackEdit. It enables you to synchronize any file in your workspace with other files stored in your Google Drive, your Dropbox and your GitHub accounts. This allows you to keep writing on other devices, collaborate with people you share the file with, integrate easily into your workflow… The synchronization mechanism takes place every minute in the background, downloading, merging, and uploading file modifications.

There are two types of synchronization and they can complement each other:

  • The workspace synchronization will sync all your files, folders and settings automatically. This will allow you to fetch your workspace on any other device.

    To start syncing your workspace, just sign in with Google in the menu.

  • The file synchronization will keep one file of the workspace synced with one or multiple files in Google Drive, Dropbox or GitHub.

    Before starting to sync files, you must link an account in the Synchronize sub-menu.

Open a file

You can open a file from Google Drive, Dropbox or GitHub by opening the Synchronize sub-menu and clicking Open from. Once opened in the workspace, any modification in the file will be automatically synced.

Save a file

You can save any file of the workspace to Google Drive, Dropbox or GitHub by opening the Synchronize sub-menu and clicking Save on. Even if a file in the workspace is already synced, you can save it to another location. StackEdit can sync one file with multiple locations and accounts.

Synchronize a file

Once your file is linked to a synchronized location, StackEdit will periodically synchronize it by downloading/uploading any modification. A merge will be performed if necessary and conflicts will be resolved.

If you just have modified your file and you want to force syncing, click the Synchronize now button in the navigation bar.

Note: The Synchronize now button is disabled if you have no file to synchronize.

Manage file synchronization

Since one file can be synced with multiple locations, you can list and manage synchronized locations by clicking File synchronization in the Synchronize sub-menu. This allows you to list and remove synchronized locations that are linked to your file.

Publication

Publishing in StackEdit makes it simple for you to publish online your files. Once you’re happy with a file, you can publish it to different hosting platforms like Blogger, Dropbox, Gist, GitHub, Google Drive, WordPress and Zendesk. With Handlebars templates, you have full control over what you export.

Before starting to publish, you must link an account in the Publish sub-menu.

Publish a File

You can publish your file by opening the Publish sub-menu and by clicking Publish to. For some locations, you can choose between the following formats:

  • Markdown: publish the Markdown text on a website that can interpret it (GitHub for instance),
  • HTML: publish the file converted to HTML via a Handlebars template (on a blog for example).

Update a publication

After publishing, StackEdit keeps your file linked to that publication which makes it easy for you to re-publish it. Once you have modified your file and you want to update your publication, click on the Publish now button in the navigation bar.

Note: The Publish now button is disabled if your file has not been published yet.

Manage file publication

Since one file can be published to multiple locations, you can list and manage publish locations by clicking File publication in the Publish sub-menu. This allows you to list and remove publication locations that are linked to your file.

Markdown extensions

StackEdit extends the standard Markdown syntax by adding extra Markdown extensions, providing you with some nice features.

ProTip: You can disable any Markdown extension in the File properties dialog.

SmartyPants

SmartyPants converts ASCII punctuation characters into “smart” typographic punctuation HTML entities. For example:

ASCII HTML
Single backticks 'Isn't this fun?' ‘Isn’t this fun?’
Quotes "Isn't this fun?" “Isn’t this fun?”
Dashes -- is en-dash, --- is em-dash – is en-dash, — is em-dash

KaTeX

You can render LaTeX mathematical expressions using KaTeX:

The Gamma function satisfying Γ(n)=(n1)!nN\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N is via the Euler integral

Γ(z)=0tz1etdt.\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.

You can find more information about LaTeX mathematical expressions here.

Inline LaTeX:Γ(z)=0tz1etdt.\LaTeX: \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
Display LaTeX:Γ(z)=0tz1etdt.\LaTeX: \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.

$ or $$ 囲い
\\( \\), \\[ \\] 囲い(\ がエスケープされるので二重)

Inline \(\LaTeX: \Gamma(z) = \int_0^\infty t{z-1}e{-t}dt,.\)
Display \[\LaTeX: \Gamma(z) = \int_0^\infty t{z-1}e{-t}dt,.\]

UML diagrams

You can render UML diagrams using Mermaid. For example, this will produce a sequence diagram:

AliceBobJohnHello Bob, how are you?How about you John?I am good thanks!I am good thanks!Bob thinks a longlong time, so longthat the text doesnot fit on a row.Checking with John...Yes... John, how are you?AliceBobJohn

And this will produce a flow chart:

Link text
Square Rect
Circle
Round Rect
Rhombus

脚注はつけられますか?

脚注をつける1

スニペットのシンタックスハイライト

class Main{
  void main(String[] args){
    System.out.println("Hello, world!");
  }
}
print(set(input() for _ in range(10)))

ページ内リンク

アンカー


  1. これは脚注です ↩︎

Hello!

Welcome to StackEdit!

Hey! I’m your first Markdown document in StackEdit1. Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.


Documents

StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline!

Note:

  • StackEdit is accessible offline after the application has been loaded for the first time.
  • Your local documents are not shared between different browsers or computers.
  • Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section).

Create a document

The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel.

Switch to another document

All your local documents are listed in the document panel. You can switch from one to another by clicking a document in the list or you can toggle documents using Ctrl+[ and Ctrl+].

Rename a document

You can rename the current document by clicking the document title in the navigation bar.

Delete a document

You can delete the current document by clicking Delete document in the document panel.

Export a document

You can save the current document to a file by clicking Export to disk from the menu panel.

Tip: Check out the Publish a document section for a description of the different output formats.


Synchronization

StackEdit can be combined with Google Drive and Dropbox to have your documents saved in the Cloud. The synchronization mechanism takes care of uploading your modifications or downloading the latest version of your documents.

Note:

  • Full access to Google Drive or Dropbox is required to be able to import any document in StackEdit. Permission restrictions can be configured in the settings.
  • Imported documents are downloaded in your browser and are not transmitted to a server.
  • If you experience problems saving your documents on Google Drive, check and optionally disable browser extensions, such as Disconnect.

Open a document

You can open a document from Google Drive or the Dropbox by opening the Synchronize sub-menu and by clicking Open from…. Once opened, any modification in your document will be automatically synchronized with the file in your Google Drive / Dropbox account.

Save a document

You can save any document by opening the Synchronize sub-menu and by clicking Save on…. Even if your document is already synchronized with Google Drive or Dropbox, you can export it to a another location. StackEdit can synchronize one document with multiple locations and accounts.

Synchronize a document

Once your document is linked to a Google Drive or a Dropbox file, StackEdit will periodically (every 3 minutes) synchronize it by downloading/uploading any modification. A merge will be performed if necessary and conflicts will be detected.

If you just have modified your document and you want to force the synchronization, click the button in the navigation bar.

Note: The button is disabled when you have no document to synchronize.

Manage document synchronization

Since one document can be synchronized with multiple locations, you can list and manage synchronized locations by clicking Manage synchronization in the Synchronize sub-menu. This will let you remove synchronization locations that are associated to your document.

Note: If you delete the file from Google Drive or from Dropbox, the document will no longer be synchronized with that location.


Publication

Once you are happy with your document, you can publish it on different websites directly from StackEdit. As for now, StackEdit can publish on Blogger, Dropbox, Gist, GitHub, Google Drive, Tumblr, WordPress and on any SSH server.

Publish a document

You can publish your document by opening the Publish sub-menu and by choosing a website. In the dialog box, you can choose the publication format:

  • Markdown, to publish the Markdown text on a website that can interpret it (GitHub for instance),
  • HTML, to publish the document converted into HTML (on a blog for example),
  • Template, to have a full control of the output.

Note: The default template is a simple webpage wrapping your document in HTML format. You can customize it in the Advanced tab of the Settings dialog.

Update a publication

After publishing, StackEdit will keep your document linked to that publication which makes it easy for you to update it. Once you have modified your document and you want to update your publication, click on the button in the navigation bar.

Note: The button is disabled when your document has not been published yet.

Manage document publication

Since one document can be published on multiple locations, you can list and manage publish locations by clicking Manage publication in the menu panel. This will let you remove publication locations that are associated to your document.

Note: If the file has been removed from the website or the blog, the document will no longer be published on that location.


Markdown Extra

StackEdit supports Markdown Extra, which extends Markdown syntax with some nice features.

Tip: You can disable any Markdown Extra feature in the Extensions tab of the Settings dialog.

Note: You can find more information about Markdown syntax here and Markdown Extra extension here.

Tables

Markdown Extra has a special syntax for tables:

Item Value
Computer $1600
Phone $12
Pipe $1

You can specify column alignment with one or two colons:

Item Value Qty
Computer $1600 5
Phone $12 12
Pipe $1 234

Definition Lists

Markdown Extra has a special syntax for definition lists too:

Term 1
Term 2
Definition A
Definition B
Term 3

Definition C

Definition D

part of definition D

Fenced code blocks

GitHub’s fenced code blocks are also supported with Highlight.js syntax highlighting:

// Foo
var bar = 0;

Tip: To use Prettify instead of Highlight.js, just configure the Markdown Extra extension in the Settings dialog.

Note: You can find more information:

  • about Prettify syntax highlighting here,
  • about Highlight.js syntax highlighting here.

Footnotes

You can create footnotes like this2.

SmartyPants

SmartyPants converts ASCII punctuation characters into “smart” typographic punctuation HTML entities. For example:

ASCII HTML
Single backticks 'Isn't this fun?' ‘Isn’t this fun?’
Quotes "Isn't this fun?" “Isn’t this fun?”
Dashes -- is en-dash, --- is em-dash – is en-dash, — is em-dash

Table of contents

You can insert a table of contents using the marker [TOC]:

MathJax

You can render LaTeX mathematical expressions using MathJax, as on math.stackexchange.com:

The Gamma function satisfying is via the Euler integral

Tip: To make sure mathematical expressions are rendered properly on your website, include MathJax into your template:

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>

Note: You can find more information about LaTeX mathematical expressions here.

Inline
Display

$ or $$ 囲い
\\( \\), \\[ \\] 囲い(\ がエスケープされるので二重)

Inline \(\LaTeX: \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt,.\)
Display

UML diagrams

You can also render sequence diagrams like this:

Created with Raphaël 2.1.2AliceAliceBobBobHello Bob, how are you?Bob thinksI am good thanks!

And flow charts like this:

Created with Raphaël 2.1.2StartMy OperationYes or No?Endyesno

Note: You can find more information:

  • about Sequence diagrams syntax here,
  • about Flow charts syntax here.

Support StackEdit


  1. StackEdit is a full-featured, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.
  2. Here is the text of the footnote.