Last active
June 12, 2018 14:40
-
-
Save genkuroki/0b5263125e08d5b731ddd64790fc9c01 to your computer and use it in GitHub Desktop.
加藤一二三
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "using SymPy\n\n加, 藤 = symbols(\"加 藤\")\n二, 三 = symbols(\"二 三\", commutative=false)\n\nz = [\n 加 三\n 二 藤\n]", | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"execution_count": 1, | |
"data": { | |
"text/plain": "2×2 Array{SymPy.Sym,2}:\n 加 三\n 二 藤", | |
"text/latex": "\\begin{bmatrix}加&三\\\\二&藤\\end{bmatrix}" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "simplify(det(z))", | |
"execution_count": 2, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"execution_count": 2, | |
"data": { | |
"text/plain": "加*藤 - 二*三", | |
"text/latex": "$$加 藤 - 二 三$$" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "det(z)", | |
"execution_count": 3, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"execution_count": 3, | |
"data": { | |
"text/plain": " / 二*三\\\n加*|藤 - ---|\n \\ 加 /", | |
"text/latex": "$$加 \\left(藤 - \\frac{二 三}{加}\\right)$$" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "", | |
"execution_count": null, | |
"outputs": [] | |
} | |
], | |
"metadata": { | |
"_draft": { | |
"nbviewer_url": "https://gist.github.com/0b5263125e08d5b731ddd64790fc9c01" | |
}, | |
"gist": { | |
"id": "0b5263125e08d5b731ddd64790fc9c01", | |
"data": { | |
"description": "加藤一二三", | |
"public": true | |
} | |
}, | |
"kernelspec": { | |
"name": "julia-0.6", | |
"display_name": "Julia 0.6.3", | |
"language": "julia" | |
}, | |
"language_info": { | |
"file_extension": ".jl", | |
"name": "julia", | |
"mimetype": "application/julia", | |
"version": "0.6.3" | |
}, | |
"toc": { | |
"nav_menu": {}, | |
"number_sections": true, | |
"sideBar": true, | |
"skip_h1_title": false, | |
"title_cell": "Table of Contents", | |
"title_sidebar": "Contents", | |
"toc_cell": false, | |
"toc_position": {}, | |
"toc_section_display": true, | |
"toc_window_display": false | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment