Toggle navigation
Egison
ドキュメント
デモ
オンライン・デモ
ポーカーの役判定
麻雀の上がり判定
双子素数の列挙
ツリー
グラフ
3-SATを解く乱択アルゴリズム
時系列データ解析
オンライン・ツール
オンライン Egison
オンライン・チュートリアル
数式処理
ブログ
コミュニティ
外微分
Nov 20 2017
-- -- Exterior Derivative -- def N : Integer := 3 def params : Vector MathExpr := [|x, y, z|] def g : Matrix Integer := [|[|1, 0, 0|], [|0, 1, 0|], [|0, 0, 1|]|] def d {a} (X: a) : DiffForm a := WedgeApplyExpr (ApplyExpr (VarExpr "flip") [VarExpr "\8706/\8706"]) [VarExpr "params",VarExpr "X"] def f : MathExpr := function (x, y, z) -- The exterior derivative of f is the gradient 1-form assertEqual "d(f)" (d f) [| f|1 x y z, f|2 x y z, f|3 x y z |] -- The exterior derivative of d(f) is 0 (d^2 = 0) assertEqual "d(d(f)) = 0 (Poincaré lemma)" (dfNormalize (d (d f))) [| [| 0, 0, 0 |], [| 0, 0, 0 |], [| 0, 0, 0 |] |]
リンク
Egison 数学ノート目次に戻る
This website in other langauge:
English
,
日本語