{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "d4d9ab7a-0a97-4330-9fee-7f66d3fdafcb", "metadata": { "tags": [] }, "outputs": [], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 2, "id": "f764486f-992b-4a4b-8677-9e852f1d788c", "metadata": { "tags": [] }, "outputs": [ { "ename": "TypeError", "evalue": "Cannot interpret '6' as a data type", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)", "Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m A \u001b[38;5;241m=\u001b[39m np\u001b[38;5;241m.\u001b[39mzeros(\u001b[38;5;241m6\u001b[39m, \u001b[38;5;241m6\u001b[39m)\n", "\u001b[0;31mTypeError\u001b[0m: Cannot interpret '6' as a data type" ] } ], "source": [ "A = np.eye(6, 6)" ] }, { "cell_type": "code", "execution_count": null, "id": "9ba4b933-820d-4445-9c2a-68f463c33b16", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.11.5" } }, "nbformat": 4, "nbformat_minor": 5 }