Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
add abgeleitete funktion
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyfisch committed Dec 26, 2023
1 parent 9bcb28b commit 24b3b5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Scripts/Kapitel 3/A_Priori_Iterationsverfahren.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ def a_priori_mit_bekannter_toleranz(alpha, x0, x1, tol):


x = symbols("x")
funktion = exp(x)
funktion = exp(x) - exp(1)
abgeleitete_funktion = diff(funktion, x)
start_intervall = -3
end_intervall = -2
alpha = getAlpha(funktion, start_intervall, end_intervall)
alpha = getAlpha(abgeleitete_funktion, start_intervall, end_intervall)

# Funktion mit x0 eingesetzt bzw 1 Iterationsschritt
x1 = np.exp(-2.5) - np.exp(1)
Expand Down

0 comments on commit 24b3b5a

Please sign in to comment.