README updated and lineare_algebra/aufgabenblatt_6_6.py created

This commit is contained in:
git-sandro 2025-11-01 18:08:22 +01:00
parent 009673461b
commit d5f90a53a2
2 changed files with 28 additions and 1 deletions

View File

@ -1,6 +1,6 @@
This reposetory is used for saving my calculations. Install Jupyter VS Code extension for interactive window This reposetory is used for saving my calculations. Install Jupyter VS Code extension for interactive window
Python libraries needed. Use pip install ... Install this Python libraries in your virtual environment. Use pip install ...
* numpy * numpy
* matplotlib * matplotlib
* sympy * sympy

View File

@ -0,0 +1,27 @@
#%%
# Python initialisieren
import sympy as sp;
import IPython.display as dp;
x = sp.symbols("x");
def solve_equation(eq):
return sp.solve(eq)
# Ausgabe
equations = [
sp.Eq(sp.sin(2*x), 0), #a
sp.Eq(sp.sin(x), sp.cos(x)), #b
sp.Eq(3*sp.cot(x)**2, 9), #c
sp.Eq(4*sp.cos(3*x)-2, 0), #d
sp.Eq(sp.sin(x)*sp.cos(x), (-1/2)), #e
sp.Eq(sp.sin(2*x), -1), #e
sp.Eq(sp.cos(x), (3/2)*sp.tan(x)), #f
]
for eq in equations:
dp.display(solve_equation(eq));
# %%