Vorlesung 2

This commit is contained in:
dev weycloud
2021-09-23 19:58:44 +02:00
parent b842733193
commit 5562abd79b
10 changed files with 170 additions and 1 deletions

18
Vorlesung 2/math.py Normal file
View File

@@ -0,0 +1,18 @@
# Das Modul "math"
import math as m
# Einige wichtige Funktionen:
# exp(x) # return e**x
# log(a[,b]) # returns log of x to the base b
# sqrt(x) # Wurzel aus x
# pi # Zahl PI
# e # eulersche Zahl
# comb(n,k) # Binominalkoeffizient
# fabs(x) # returns absolut value of x
# gcd(a,b) # returns GGT
# pow(x,y) # berechnet x hoch y
# 2³ = 8
twoPower3 = m.pow(2, 3)
print("2³ =", twoPower3)