{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"10×10 Array{Float64,2}:\n",
" 0.848025 0.387772 0.224619 … 0.338065 0.429845 0.566623 \n",
" 0.592387 0.126417 0.762016 0.337227 0.499531 0.125014 \n",
" 0.796629 0.420667 0.30111 0.636823 0.244505 0.0776034\n",
" 0.0283969 0.230053 0.317622 0.00364998 0.465687 0.673238 \n",
" 0.0884677 0.364589 0.761565 0.227244 0.00597712 0.434975 \n",
" 0.0122327 0.985205 0.498476 … 0.316262 0.061918 0.597669 \n",
" 0.101664 0.341578 0.852273 0.286288 0.410105 0.816123 \n",
" 0.151339 0.590485 0.557009 0.44443 0.865771 0.833309 \n",
" 0.642109 0.985254 0.96314 0.977589 0.141149 0.888888 \n",
" 0.870983 0.16526 0.0682984 0.57578 0.149021 0.783798 "
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x = rand(10,10)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(Complex{Float64}[4.49517+0.0im,-0.940993+0.0im,-0.468336+0.422947im,-0.468336-0.422947im,-0.329668+0.0im,0.110138+0.590079im,0.110138-0.590079im,0.66472+0.0im,0.599878+0.0im,0.394539+0.0im],\n",
"Complex{Float64}[-0.293371+0.0im -0.0121226+0.0im … -0.102759+0.0im 0.259304+0.0im; -0.311966+0.0im -0.239439+0.0im … 0.299244+0.0im 0.258393+0.0im; … ; -0.443804+0.0im 0.658137+0.0im … 0.146355+0.0im -0.229584+0.0im; -0.33458+0.0im -0.280974+0.0im … -0.697963+0.0im -0.368062+0.0im])"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eig(x)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(\n",
"[-0.292646 0.209526 … 0.30915 0.0288959; -0.299129 -0.0012716 … -0.14495 -0.234699; … ; -0.44318 0.0260546 … -0.341218 -0.335031; -0.345493 0.508656 … -0.307646 0.0161651],\n",
"\n",
"[4.68594,1.53297,1.23277,0.973409,0.806566,0.552369,0.5297,0.518832,0.358735,0.0831403],\n",
"[-0.290164 0.623791 … -0.070753 0.27542; -0.319596 -0.226939 … 0.291838 0.23406; … ; -0.223619 -0.126807 … -0.249958 0.183592; -0.402783 -0.241309 … -0.458745 0.17102])"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"svd(x)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n"
],
"text/html": [
"\n",
"\n"
],
"text/plain": [
"Plot(...)"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"using RDatasets, Gadfly\n",
"plot(dataset(\"datasets\",\"iris\"), x=\"SepalWidth\", y=\"SepalLength\", color=\"Species\")\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}