Clear outputs

This commit is contained in:
Gelieza K
2023-11-02 13:22:12 +01:00
parent f7de703973
commit a7b86b4a38
3 changed files with 77 additions and 510 deletions

View File

@@ -37,21 +37,10 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "7e93809a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"ge_dep_check (generic function with 1 method)"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"using Printf\n",
"function answer_checker(answer,solution)\n",
@@ -160,21 +149,10 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "e4070214",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"gaussian_elimination! (generic function with 1 method)"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"function gaussian_elimination!(B)\n",
" n,m = size(B)\n",
@@ -206,24 +184,10 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "eb30df0d",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3×4 Matrix{Float64}:\n",
" 1.0 3.0 1.0 9.0\n",
" 0.0 1.0 2.0 8.0\n",
" 0.0 0.0 1.0 4.0"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"A = Float64[1 3 1; 1 2 -1; 3 11 5]\n",
"b = Float64[9,1,35]\n",
@@ -288,18 +252,10 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "078e974e",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"It's not correct. Keep trying! 💪\n"
]
}
],
"outputs": [],
"source": [
"answer = \"x\" # replace x with a, b, c, or d \n",
"ge_par_check(answer)"
@@ -412,18 +368,10 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "e0565e92",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"It's not correct. Keep trying! 💪\n"
]
}
],
"outputs": [],
"source": [
"answer = \"x\" # replace x with a, b, c, or d \n",
"ge_dep_check(answer)"
@@ -476,21 +424,10 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "a65cf8e6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"tridiagonal_matrix (generic function with 1 method)"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"function tridiagonal_matrix(n)\n",
" C = zeros(n,n)\n",