36 lines
417 B
Python
36 lines
417 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Created on Fri Oct 1 10:42:13 2021
|
|
|
|
@author: Joschka
|
|
"""
|
|
import numpy as np
|
|
|
|
a = np.ones(50)
|
|
|
|
for i in range(0,len(a)):
|
|
a[i] *= i
|
|
|
|
print(a)
|
|
|
|
print(a[:5])
|
|
print(a[5:])
|
|
print(a[:-5])
|
|
|
|
print(10e-3/13.7)
|
|
|
|
a = 7
|
|
|
|
if (a == (7 or 3)):
|
|
print("true")
|
|
|
|
print(40*1e-3*np.pi)
|
|
print(4/0.127)
|
|
|
|
print(30/0.3)
|
|
|
|
print(30/400)
|
|
|
|
print(4.3*4.8/(60*(0.475/2)**2 *np.pi))
|
|
|
|
print(np.sin(np.radians(90))) |