תבנית:Equation

מתוך Math-Wiki

הועתק מויקיפדיה

יש להשתמש ב-‎\vert במקום ב-| לצורך הצגת ערך מוחלט/מחלק/כך ש... (בקבוצות) כדי להציג [math]\displaystyle{ \vert }[/math] בנוסחאות המתמטיות (בפרמטרים ll, l, o, r, rr).

Usage

Used to add new rows of aligned math text.

{| needs to be called first. You can add a new general row in the following manner:

{{equation |l= |r= }}

The different possible variables that can be used are:

1. ll - Furthest left column (used only when needed).

2. l - General left column.

3. o - Operator, defaults to [math]\displaystyle{ = }[/math]

4. r - General right column.

5. rr - Furthest right column (used only when needed).

6. c - Comment.

7. cc - Extra comment (used only when needed).

Once the full equation is completed, |} must be called.

Example

{|
{{equation|l=21x|r=42|rr=/\div 21|c=נחלק ב-21:|cc=1.}}
{{equation|ll=\implies|l=x|r=2|cc=2.}}
{{equation|o=\not\in|r=\{a\vert a=3\}|cc=3.}}
|}

gives:

1. נחלק ב-21: [math]\displaystyle{ /\div 21 }[/math] [math]\displaystyle{ 42 }[/math] [math]\displaystyle{ = }[/math] [math]\displaystyle{ 21x }[/math] [math]\displaystyle{ }[/math]
2. [math]\displaystyle{ }[/math] [math]\displaystyle{ 2 }[/math] [math]\displaystyle{ = }[/math] [math]\displaystyle{ x }[/math] [math]\displaystyle{ \implies }[/math]
3. [math]\displaystyle{ }[/math] [math]\displaystyle{ \{a\vert a=3\} }[/math] [math]\displaystyle{ \not\in }[/math] [math]\displaystyle{ }[/math] [math]\displaystyle{ }[/math]