Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (120 points)
import numpy as np

N = 100

x = np.linspace(2, 8, num = N)

delta_x = x[1]-x[0]

Sum = 0

for i in range (0,N-1):

    sum = sum + delta_x*(100*np.sin(3*x) +150)

    

    np.pint(sum)

#Andre Intervall

import numpy as np

N = 100

x = np.linspace(2, 8, num = N)

delta_x = x[1]-x[0]

Sum = 0

for i in range (1,N):

    sum = sum + delta_x*(100*np.sin(3*x) +150)

np.pint(sum)

Please log in or register to answer this question.

No related questions found

Browse Categories

...