aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/lambertw/Bilder/Abstand.py
blob: d787c34bf85a3883190e28f75ded909ea20384c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 30 23:09:33 2022

@author: yanik
"""

import numpy as np
import matplotlib.pyplot as plt

phi = np.pi/2
t = np.linspace(0, 10, 10**5)
x0 = 1

def D(t):
    return np.sqrt(x0**2+2*x0*t*np.cos(phi)+2*t**2-2*t**2*np.sin(phi))

plt.plot(t, D(t))