change names of file
This commit is contained in:
parent
47a5ea3672
commit
6786e5fafb
26
numpy_tutorial.py
Normal file
26
numpy_tutorial.py
Normal file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Thu Sep 18 17:10:29 2025
|
||||
|
||||
@author: s
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
|
||||
# Berechnungen
|
||||
def main():
|
||||
a=4+7
|
||||
b=7*9
|
||||
c=np.log(10)/np.log(4)
|
||||
d=np.sin(np.pi/2)
|
||||
|
||||
# Ausgabe
|
||||
print(f"a: {a}")
|
||||
print(f"b: {b}")
|
||||
print(f"c: {c}")
|
||||
print(f"d: {d}")
|
||||
|
||||
main()
|
||||
|
||||
|
22
sympy_tutorial.py
Normal file
22
sympy_tutorial.py
Normal file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Thu Sep 18 17:47:51 2025
|
||||
|
||||
@author: s
|
||||
"""
|
||||
import sympy as sp
|
||||
import IPython.display as dp
|
||||
sp.init_printing()
|
||||
|
||||
# Konfiguration
|
||||
x, y, z = sp.symbols('x, y, z')
|
||||
|
||||
# Berechnugen
|
||||
f = (5*x**2-x**(1/2))*(y+x*y)
|
||||
g=sp.expand(f) #ausmultiplizieren
|
||||
h=sp.simplify(f) #vereinfachen
|
||||
i=sp.factor(f) #faktorisieren
|
||||
|
||||
#Ausgabe
|
||||
dp.display(f)
|
Loading…
x
Reference in New Issue
Block a user