From 0d6328617e1d061d35811f0c8cabcc3cff1bb45a Mon Sep 17 00:00:00 2001 From: s487174 Date: Wed, 14 Jun 2023 19:44:46 +0200 Subject: [PATCH] Adjustments --- Wrzodak_Koszarek_Zadania.ipynb | 37 ++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/Wrzodak_Koszarek_Zadania.ipynb b/Wrzodak_Koszarek_Zadania.ipynb index 97919eb..9d941cc 100644 --- a/Wrzodak_Koszarek_Zadania.ipynb +++ b/Wrzodak_Koszarek_Zadania.ipynb @@ -1,19 +1,36 @@ { "cells": [ { - "cell_type": "code", - "execution_count": null, + "attachments": {}, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ "Zadanie 4.6" ] }, { - "cell_type": "code", - "execution_count": null, + "attachments": {}, + "cell_type": "markdown", "metadata": {}, - "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "ename": "NameError", + "evalue": "name 'QQ' is not defined", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[1;32mIn[1], line 5\u001b[0m\n\u001b[0;32m 2\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39msympy\u001b[39;00m \u001b[39mimport\u001b[39;00m symbols, Matrix\n\u001b[0;32m 3\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mnumpy\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mlinalg\u001b[39;00m \u001b[39mimport\u001b[39;00m eig\n\u001b[1;32m----> 5\u001b[0m A\u001b[39m=\u001b[39mnp\u001b[39m.\u001b[39mmatrix(QQ,\u001b[39m5\u001b[39m,\u001b[39m3\u001b[39m,[\u001b[39m2\u001b[39m, \u001b[39m4\u001b[39m, \u001b[39m6\u001b[39m, \u001b[39m8\u001b[39m, \u001b[39m10\u001b[39m, \u001b[39m12\u001b[39m, \u001b[39m14\u001b[39m, \u001b[39m16\u001b[39m, \u001b[39m18\u001b[39m, \u001b[39m20\u001b[39m, \u001b[39m22\u001b[39m, \u001b[39m24\u001b[39m, \u001b[39m26\u001b[39m, \u001b[39m28\u001b[39m, \u001b[39m31\u001b[39m])\n\u001b[0;32m 6\u001b[0m \u001b[39mprint\u001b[39m(A\u001b[39m.\u001b[39mtranspose()\u001b[39m*\u001b[39mA)\n\u001b[0;32m 7\u001b[0m \u001b[39mprint\u001b[39m((A\u001b[39m.\u001b[39mtranspose()\u001b[39m*\u001b[39mA)\u001b[39m^\u001b[39m(\u001b[39m-\u001b[39m\u001b[39m1\u001b[39m))\n", + "\u001b[1;31mNameError\u001b[0m: name 'QQ' is not defined" + ] + } + ], "source": [ "import numpy as np\n", "from sympy import symbols, Matrix\n", @@ -120,7 +137,15 @@ "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.10.9" }, "orig_nbformat": 4