Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
243 B
1
Indexable
Never
from sympy import symbols, solve

# Definer variablen x
x = symbols('x')

# Definer funktionen f(x)
f = -1/3*x**3 - x**2 + 13*x - 4

# Løs ligningen f(x) = 0 for x
nulpunkter = solve(f, x)
print("Nulpunkterne for funktionen er:", nulpunkter)
Leave a Comment