mathematik/sympy.py
2025-09-18 23:45:09 +02:00

22 lines
385 B
Python

#!/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)