*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit fce4785d authored by Bader, Markus's avatar Bader, Markus
Browse files

conficence elliplse

parent 91e0e51f
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,12 @@ conda env list ...@@ -14,6 +14,12 @@ conda env list
conda activate mr2024 conda activate mr2024
# conda remove --name mr2024 --all # conda remove --name mr2024 --all
``` ```
## JupyterLab
```sh
# run jupyter withput password and token
jupyter lab --NotebookApp.token='' --NotebookApp.password=''
```
__Hint:__ __Hint:__
Personally, I do not like to source Conda with the _.bashrc_. Therefore I remove the added code from the _.bashrc_ and source Conda if needed with by hand. Personally, I do not like to source Conda with the _.bashrc_. Therefore I remove the added code from the _.bashrc_ and source Conda if needed with by hand.
......
%% Cell type:markdown id:8aa81236-1e36-4228-89d6-1898c0590ca7 tags: %% Cell type:markdown id:8aa81236-1e36-4228-89d6-1898c0590ca7 tags:
# Gaussian # Gaussian
%% Cell type:code id:0068b5e3-2e8c-4e8c-9981-6e35b4efd7d7 tags: %% Cell type:code id:0068b5e3-2e8c-4e8c-9981-6e35b4efd7d7 tags:
``` python ``` python
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
import matplotlib.mlab as mlab import matplotlib.mlab as mlab
import math import math
from scipy.stats import norm from scipy.stats import norm
import sympy as sp import sympy as sp
from sympy import Matrix from sympy import Matrix
#%matplotlib widget #%matplotlib widget
``` ```
%% Cell type:markdown id:d3d3ce3f-8088-4301-ace9-8ecb984e5bdf tags: %% Cell type:markdown id:d3d3ce3f-8088-4301-ace9-8ecb984e5bdf tags:
# Components # Components
%% Cell type:code id:e9a1e403-1b81-4230-8066-2d18ad92d597 tags: %% Cell type:code id:e9a1e403-1b81-4230-8066-2d18ad92d597 tags:
``` python ``` python
rDm = np.array([[2, -1]]).T rDm = np.array([[2, -1]]).T
a = np.pi/4.0 a = np.pi/4.0
rRm = np.array([[np.cos(a), -np.sin(a)], [np.sin(a), np.cos(a)]]) rRm = np.array([[np.cos(a), -np.sin(a)], [np.sin(a), np.cos(a)]])
# Display the matrix using LaTeX formatting # Display the matrix using LaTeX formatting
sp.init_printing() # Enables pretty printing sp.init_printing() # Enables pretty printing
display(Matrix(rRm)) display(Matrix(rRm))
display(Matrix(rDm)) display(Matrix(rDm))
``` ```
%% Output %% Output
$\displaystyle \left[\begin{matrix}0.707106781186548 & -0.707106781186547\\0.707106781186547 & 0.707106781186548\end{matrix}\right]$ $\displaystyle \left[\begin{matrix}0.707106781186548 & -0.707106781186547\\0.707106781186547 & 0.707106781186548\end{matrix}\right]$
$\displaystyle \left[\begin{matrix}2\\-1\end{matrix}\right]$ $\displaystyle \left[\begin{matrix}2\\-1\end{matrix}\right]$
%% Cell type:markdown id:2fda2c5e-4b31-4c8a-bfad-f76e61b5782e tags: %% Cell type:markdown id:2fda2c5e-4b31-4c8a-bfad-f76e61b5782e tags:
# Transformation Matrix # Transformation Matrix
%% Cell type:code id:418b6bc3-d760-4dfe-b6f0-4faccf20bb4d tags: %% Cell type:code id:418b6bc3-d760-4dfe-b6f0-4faccf20bb4d tags:
``` python ``` python
rTm = np.matrix(np.block([[rRm,rDm],[0,0,1]])) rTm = np.matrix(np.block([[rRm,rDm],[0,0,1]]))
display(Matrix(rTm)) display(Matrix(rTm))
display(Matrix(rTm)) display(Matrix(rTm))
``` ```
%% Output %% Output
$\displaystyle \left[\begin{matrix}0.707106781186548 & -0.707106781186547 & 2.0\\0.707106781186547 & 0.707106781186548 & -1.0\\0.0 & 0.0 & 1.0\end{matrix}\right]$ $\displaystyle \left[\begin{matrix}0.707106781186548 & -0.707106781186547 & 2.0\\0.707106781186547 & 0.707106781186548 & -1.0\\0.0 & 0.0 & 1.0\end{matrix}\right]$
$\displaystyle \left[\begin{matrix}0.707106781186548 & -0.707106781186547 & 2.0\\0.707106781186547 & 0.707106781186548 & -1.0\\0.0 & 0.0 & 1.0\end{matrix}\right]$ $\displaystyle \left[\begin{matrix}0.707106781186548 & -0.707106781186547 & 2.0\\0.707106781186547 & 0.707106781186548 & -1.0\\0.0 & 0.0 & 1.0\end{matrix}\right]$
%% Cell type:markdown id:6dd2fb05-5122-4602-88ab-b7a6b4ee1dae tags: %% Cell type:markdown id:6dd2fb05-5122-4602-88ab-b7a6b4ee1dae tags:
# Inverse # Inverse
%% Cell type:code id:9b085cda-e3ba-4d91-add9-9885f35ec6d2 tags: %% Cell type:code id:9b085cda-e3ba-4d91-add9-9885f35ec6d2 tags:
``` python ``` python
mTr =rTm.I mTr =rTm.I
display(Matrix(mTr)) display(Matrix(mTr))
``` ```
%% Output %% Output
$\displaystyle \left[\begin{matrix}0.707106781186548 & 0.707106781186547 & -0.707106781186548\\-0.707106781186547 & 0.707106781186548 & 2.12132034355964\\0.0 & 0.0 & 1.0\end{matrix}\right]$ $\displaystyle \left[\begin{matrix}0.707106781186548 & 0.707106781186547 & -0.707106781186548\\-0.707106781186547 & 0.707106781186548 & 2.12132034355964\\0.0 & 0.0 & 1.0\end{matrix}\right]$
%% Cell type:code id:d5ee644d-595c-4c46-bbeb-6c317fba2ddc tags: %% Cell type:code id:d5ee644d-595c-4c46-bbeb-6c317fba2ddc tags:
``` python ``` python
mDr = mDr =
``` ```
%% Output
Cell In[5], line 1
mDr =
^
SyntaxError: invalid syntax
%% Cell type:code id:d03a5012-c31b-4181-af8c-a4ffe76bcd53 tags: %% Cell type:code id:d03a5012-c31b-4181-af8c-a4ffe76bcd53 tags:
``` python ``` python
``` ```
%% Cell type:code id:a466342a-bf6e-4158-a766-d9100624060c tags: %% Cell type:code id:a466342a-bf6e-4158-a766-d9100624060c tags:
``` python ``` python
``` ```
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment