Fractions, roots and sums · الكسور والجذور والمجموع
A maths toolkit: amsmath
- For serious maths, load the
amsmathpackage once in the preamble:
- It adds better fractions, alignment, and dozens of symbols. Almost every maths document uses it.
حقيبة أدوات الرياضيات: amsmath
- للرياضيات المتقدمة، حمّل حزمة
amsmathمرة واحدة في المقدمة:
\usepackage{amsmath}
- فهي تضيف كسوراً أفضل، ومحاذاة، وعشرات الرموز. يستخدمها تقريباً كل مستند رياضي.
Fractions and roots
- A fraction is
\frac{top}{bottom}; a square root is\sqrt{...}:
- They nest happily:
\sqrt{\frac{1}{n}}is the square root of one-over-n.
الكسور والجذور
- الكسر هو
\frac{top}{bottom}؛ وجذر التربيع هو\sqrt{...}:
\[ \frac{a + b}{2} \qquad \sqrt{x^2 + y^2} \]
- يتداخلان بسلاسة:
\sqrt{\frac{1}{n}}هو جذر التربيع لواحد على ن.
Sums and integrals
- These grow to the right size automatically:
- The
_sets the lower limit and^the upper limit — the same keys as powers.
المجاميع والتكاملات
- هذه تكبر تلقائياً لتصل للحجم الصحيح:
\[ \sum_{i=1}^{n} i \qquad \int_0^1 x^2 \, dx \]
- يحدد
_الحد الأدنى ويحدد^الحد الأعلى — نفس المفاتيح المستخدمة للأسس.
Common mistakes
\frac{a}{b},\sqrt{x}and\sumonly work in math mode.- Put them inside
$...$or\[ ... \].
أخطاء شائعة
- تعمل
\frac{a}{b}،\sqrt{x}و\sumفقط في وضع الرياضيات. - ضعها داخل
$...$أو\[ ... \].
Write a fraction in the display equation. Replace the comment with \frac{1}{2} so the equation reads one-half. The amsmath package is already loaded for you. · اكتب كسراً في المعادلة العرضية. استبدل التعليق بـ \frac{1}{2} لتكون المعادلة نصف. حزمة amsmath محملة مسبقاً لك.
Now use two more maths tools. In the display equation write a square root \sqrt{...} and a sum \sum, for example \[ \sqrt{2} + \sum_{i=1}^{n} i \]. · الآن استخدم أدوات رياضية أخرى. في المعادلة العرضية اكتب جذراً تربيعياً \sqrt{...} ومجموع \sum، على سبيل المثال \[ \sqrt{2} + \sum_{i=1}^{n} i \].