{"cells": [{"cell_type": "code", "execution_count": 1, "metadata": {"school_cell_uuid": "902fbfabbf434200865b213510ef4892"}, "outputs": [{"data": {"text/plain": ["array([[-4, -3, -2],\n", " [-1, 0, 1],\n", " [ 2, 3, 4]])"]}, "execution_count": 1, "metadata": {}, "output_type": "execute_result"}], "source": ["import numpy as np\n", "\n", "A = (np.arange(9) - 4).reshape((3, 3))\n", "A"]}, {"cell_type": "code", "execution_count": 2, "metadata": {"school_cell_uuid": "8e2fb2cd0c2b4cfe8af5d464625c32ae"}, "outputs": [{"data": {"text/plain": ["7.745966692414834"]}, "execution_count": 2, "metadata": {}, "output_type": "execute_result"}], "source": ["np.linalg.norm(A)"]}, {"cell_type": "code", "execution_count": 3, "metadata": {"school_cell_uuid": "ba74f2d8ff1f4017b574685f2d3f2a33"}, "outputs": [{"data": {"text/plain": ["3.0"]}, "execution_count": 3, "metadata": {}, "output_type": "execute_result"}], "source": ["np.trace(np.eye(3))"]}, {"cell_type": "code", "execution_count": 4, "metadata": {"school_cell_uuid": "55a6814c2ce34fd99fa08299c82f2229"}, "outputs": [{"data": {"text/plain": ["-9.51619735392994e-16"]}, "execution_count": 4, "metadata": {}, "output_type": "execute_result"}], "source": ["A = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])\n", "np.linalg.det(A)"]}], "metadata": {"celltoolbar": "Edit Metadata", "kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}, "language_info": {"codemirror_mode": {"name": "ipython", "version": 3}, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0"}, "toc": {"base_numbering": 1, "nav_menu": {}, "number_sections": false, "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": 4}