<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yts</author_name>
  <author_url>https://blog.hatena.ne.jp/yts/</author_url>
  <blog_title>One of the Eight Stones</blog_title>
  <blog_url>https://yts.hatenadiary.org/</blog_url>
  <categories>
    <anon>Mathematica</anon>
  </categories>
  <description>Mathematicaにおいてもっともsubtleな点の一つではないか。 説明 Blockは既存の変数を書き換える。 Moduleは新しく変数を生成する。 x = y; y = 0; z = 2;と定義してあるとする。このとき、x を評価すると 0 になる。 Block[{y = 1, z}, {x, y, z}]は {1, 1, 2} を返す。 Block内では、xは定義の右辺にあるyの定義が書き換えられて1になった状態で評価されるため1になる。zはクリアされ、zというシンボルのままBlockから出てくる。しかし、Blockの実行が終わるとzの定義は元の2に書き戻されるため、三番目の値は2に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyts.hatenadiary.org%2Fentry%2F20050119%2Fp3&quot; title=&quot; Block と Module の違い - One of the Eight Stones&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-01-19 00:00:01</published>
  <title> Block と Module の違い</title>
  <type>rich</type>
  <url>https://yts.hatenadiary.org/entry/20050119/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
