18 lines
289 B
Python
18 lines
289 B
Python
#%%
|
|
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)
|
|
# %%
|