For faster navigation, this Iframe is preloading the Wikiwand page for قاعدة شبه المنحرف.

قاعدة شبه المنحرف

الدالة f(x) (باللون الأزرق) تم تقريبها بدالة خطية (باللون الأحمر).
توضيح لقاعدة شبه المنحرف المركبة (بتشبيك غير منتظم).
شكل توضيحي لقاعدة شبه المنحرف (بتشبيك منتظم).

في الرياضيات، قاعدة شبة المنحرف (بالإنكليزية: Trapezoidal rule) هي إحدى طرق الحساب التقريبي للتكامل المحدد.

تعمل قاعدة شبه المنحرف بتقريب المنطقة تحت منحنى الدالة بشبه منحرف وحساب مساحته. ينجم عن ذلك

لحساب التكامل بدقة أفضل، يمكن فصل فترة التكامل أولا إلىn فترات أصغر، ومن ثم تطبيق قاعدة شبه المنحرف على كل فترة. يمكن تحصيل قاعدة شبه المنحرف المركب:

ويمكن صياغة هذا بشكل اخر:

حيث

تحليل الخطأ

[عدل]

يعرف الخطأ في قاعدة شبه المنحرف بأنه الفرق بين قيمة التكامل والقيمة العددية:

يمكن كتابة هذا الخطأ بالشكل

حيثξ عدد ما بين a وb.[1]

يعطى تخمين الخطأ المقارب لـ n → ∞ بالعلاقة

[2]

الحدود الأخرى لهذا الخطأ يمكن إيجادها من صيغة مجموع أويلر-ماكلورين.

البرمجة

[عدل]

مثال على قاعدة شبه المنحرف مكتوب بلغة البايثون

#!/usr/bin/env python 
def trapezoidal_rule(f, a, b, N):
    """Approximate the definite integral of f from a to b by the
    composite trapezoidal rule, using N subintervals"""
    return (b-a) * (f(a)/2 + f(b)/2 + sum([f(a + (b-a)*k/N) for k in range(1,N)])) / N

#test
print trapezoidal_rule(lambda x:x**9, 0.0, 10.0, 100000)

إنظر أيضا

[عدل]

ملاحظات

[عدل]
  1. ^ Atkinson (1989), equation (5.1.7)
  2. ^ Atkinson (1989), equation (5.1.9)

مراجع

[عدل]
  • Atkinson، Kendall A. (1989)، An Introduction to Numerical Analysis (ط. 2nd)، New York: جون وايلي وأولاده، ISBN:978-0-471-50023-0.
  • Burden، Richard L. (2000)، Numerical Analysis (ط. 7th Ed.)، Brooks/Cole، ISBN:0-534-38216-9 ((استشهاد)): |طبعة= يحتوي على نص زائد (مساعدة) والوسيط author-name-list parameters تكرر أكثر من مرة (مساعدة).
{{bottomLinkPreText}} {{bottomLinkText}}
قاعدة شبه المنحرف
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?