Pagalba:Lygčių įkėlimas bei redagavimas: Skirtumas tarp puslapio versijų

Ištrintas turinys Pridėtas turinys
Tarpinė versija - palaukit, aktyviai redaguojamas
 
Nėra keitimo santraukos
Eilutė 2:
Vikipedija leidžia straipsnių tekstuose įrašyti matematines, fizikines bei kitokias lygtis. Labai dažnai tokių lygčių nėra kaip užrašyti paprastu tekstu ar [[HTML]], todėl naudojama tam sukurta lygčių užrašymo kalba, [[LaTeX]]. Skirtingai nuo MediaWiki, LaTeX kalba nėra specifinė Vikipedijai, ji gana plačiai naudojama daugelyje kitų projektų, paplitusi universitetuose, todėl ją žinoti gana naudinga.
 
LaTeX fragmentas įterpiamas naudojant raktažodį <code>math</code><nowiki><math>LaTeX</math></nowiki>. MediaWiki atpažįsta šį raktažodį ir pakeičia jį komandomis naršyklei atvaizduoti formulę. Pavyzdžiui, minėtas fragmentas bus atvaizduotas kaip <math>LaTeX</math>. Žemiau pateikiami dažniausiai reikalingi atvejai (daugiau informacijos galima rasti angliškoje versijoje).
 
== Skaičiai, kintamieji, aritmetika ==
LaTeX "suvalgo" tarpus, todėl tarp dviejų kintamųjų turi būti arba koks tai operacijos ženklas arbe tiesiogiai nurodytas tarpas ("\ "), pavyzdžiui:
 
*<nowiki><math>a b c</math></nowiki>: <math>a b c</math>
*<nowiki><math>a \ b + c</math></nowiki>: <math>a \ b + c</math>
 
Daugyba žymima kaip <nowiki>\times (didelis, "mokyklinis" ženklas) arba kaip \cdot (tik taškas)</nowiki>, kėlimas laipsniu - kaip ^, nuleidimas žemyn - kaip _:
*<nowiki><math>a \times b_2 + c^2 - x \cdot y</math></nowiki>: <math>a \times b_2 + c^2 - x \cdot y</math>
 
Pagal nutylėjimą LaTeX kiekvieną raidę laiko nepriklausomu kintamuoju. Jei reikia, vieną kintamąjį (ar jo dalį) reiškiantys simboliai gaubiami figūriniais skliausteliais ( {} ):
*<nowiki><math>a_max</math></nowiki> (klaida): <math>a_max</math>
*<nowiki><math>a_{max}</math></nowiki> (teisingai): <math>a_{max}</math>
 
 
<nowiki><math>latex|expression<math></nowiki> construct. For instance, the text
 
<nowiki><math>\frac {V_m} {K_M+S}</math></nowiki>
 
will render as
 
<math>\frac {V_m} {K_M+S}</math>
 
and
<nowiki><math>\sqrt[7] {V_m}</math></nowiki>
 
will render as
 
<math>\sqrt[7] {V_m}</math>
 
also
 
<nowiki>
<math>
\int_a^b \sqrt{x^2} dx +
\sum_{a-1}^b
\sqrt{x^2}
</math>
</nowiki>
 
produces sum and integral:
 
<math>
\int_a^b \sqrt{x^2} dx +
\sum_{a-1}^b
\sqrt{x^2}
</math>
 
The math tag can span over multiple lines without problems. However it cannot follow spaces after beginning of the line. Use colon (:) if you need to shift the equation from the left margin.
 
Various spacial symbols are also supported:
<nowiki><math>\dot{a} \bigcirc \ddot{a} \acute{a} \grave{a} \partial t, \nabla\psi \to 0</math></nowiki>
results
<math>\dot{a} \bigcirc \ddot{a} \acute{a} \grave{a} \partial t, \nabla\psi \to 0</math>
 
Our LaTeX processor also currently does not recognize underscore as the function start indicator. Use log(x) or log \ x but not \log x:
<math>\mathcal{O}(n \ log \ n)</math>
<math>\mathcal{O}(n \ log \ n)</math>
 
Backslash, followed by space means "literally space" in LaTeX. Ordinary spaces are ignored by the standard and the letters would be joined together.
 
Finally, the matrixes also work:
<nowiki> <math>
\begin{matrix}
x & y \\
z & v
\end{matrix}
</math></nowiki>
 
<math>
\begin{matrix}
x & y \\
z & v
\end{matrix}
</math>
 
Some even more sophisticated constructs may or may not work. If you see an empty space instead of equation, this mean that the interpreter failed to understand your input. Try to simplify your equation or split it into several parts. Truly big equations, after all, are difficult to read for ''Homo sapiens'' as well.
 
 
[[en:Help:Displaying a formula]]