Statistiques: Posté de Tuper4 — 15 Mar 2024, 14:37
Statistiques: Posté de Saterz — 04 Nov 2023, 12:56
Statistiques: Posté de SlyVTT — 31 Oct 2023, 12:57
Statistiques: Posté de Epharius — 30 Oct 2023, 09:39
Statistiques: Posté de SlyVTT — 27 Oct 2023, 17:49
Statistiques: Posté de Wistaro — 04 Oct 2023, 21:36
Statistiques: Posté de SlyVTT — 28 Sep 2023, 20:52
Statistiques: Posté de parisse — 24 Sep 2023, 17:44
Statistiques: Posté de Bisam — 24 Sep 2023, 09:08
from math import *
def y(x):
return exp(x**3)
n = 10
a = 0 + 0.
b = 6 + 0.
i = (b-a)/n
x = a + 0.
s = 0.0
while ( x < b ):
s = s+y(x)
x = x+i
s = 4*y(x)+s
x = x+i
s = s+y(x)
print(x)
s = s*i/3
print(s)
FUNCTION y(x)
LET y=EXP(x^3)
END FUNCTION
LET n = 10
LET a = 0 + 0.
LET b = 6 + 0.
LET i = (b-a)/n
LET x = a + 0.
LET s = 0.0
DO WHILE ( x < b )
LET s = s+y(x)
LET x = x+i
LET s = 4*y(x)+s
LET x = x+i
LET s = s+y(x)
PRINT x
LOOP
LET s = s*i/3
PRINT s
END
Statistiques: Posté de toml_12953 — 23 Sep 2023, 23:22
Statistiques: Posté de Noury — 13 Sep 2023, 21:38
Statistiques: Posté de Noury — 13 Sep 2023, 21:31
Statistiques: Posté de SlyVTT — 13 Sep 2023, 21:18
Statistiques: Posté de Adriweb — 13 Sep 2023, 20:51
Statistiques: Posté de SlyVTT — 13 Sep 2023, 20:39
Statistiques: Posté de SlyVTT — 11 Sep 2023, 21:50
Statistiques: Posté de SlyVTT — 09 Sep 2023, 15:35
Statistiques: Posté de SlyVTT — 24 Aoû 2023, 21:44
Statistiques: Posté de SlyVTT — 16 Aoû 2023, 06:45