জয়েন লগইন

এসসিপি cumulative_trapezoid

🌈এসসিপি cumulative_trapezoid কি?

📋এসসিপি cumulative_trapezoid হলো ক্রমবর্ধমান ট্রাপিজয়েড সমাকলন করার পদ্ধতি।

⚒️এসসিপি cumulative_trapezoid ক্রমবর্ধমান ট্রাপিজয়েড সমাকলন করতে ব্যবহৃত হয়।

এসসিপি cumulative_trapezoid ক্রমবর্ধমান ট্রাপিজয়েড সমাকলন করার উদাহরণ।

scipy
from scipy import integrate

data = [0, 1, 4, 9, 16, 25, 36]

result = integrate.cumulative_trapezoid(
    data,
    x=[0, 1, 2, 3, 4, 5, 6],
    initial=0
)

print(result)