From IF Italia - Il Wiki della Interactive Fiction Italiana

PmWikiMan: Le formule matematiche

Per inserire una o pių formule matematiche sono disponibili i seguenti marcatori:

{$ %<parameters...>% formula $}
(:eqn <parameters...> :) [=
formula
=]
(:eqn <parameters...> :) 
formula
(:eqnend:)

con i seguenti parametri (opzionali):

'''Example:''' Solving the quadratic equation.

Suppose {$ %height=70px% ax^2+bx+c=0 text( with ) a!=0 $}

We first divide by ''a'' to get
{$ %num=1% x^2+b/ax+c/a=0 $}

Then we complete the square and obtain
{$ %num% x^2+b/ax+(b/(2a))^2-(b/(2a))^2+c/a=0 $}

The first three terms factor to give
{$ %num% (x+b/(2a))^2=(b^2)/(4a^2)-c/a $}

Now we take square roots on both sides and get
{$ %num% x+b/(2a)=+-sqrt((b^2)/(4a^2)-c/a) $}

Finally we move {$ b/(2a) $} to the right and simplify to
get the two solutions:
{$ %num=5% x_(1,2)=(-b+-sqrt(b^2-4ac))/(2a) $}

Example: Solving the quadratic equation.

Suppose

We first divide by a to get

(1)

Then we complete the square and obtain

(2)

The first three terms factor to give

(3)

Now we take square roots on both sides and get

(4)

Finally we move

to the right and simplify to get the two solutions:

(5)
Retrieved from http://ifitalia.oldgamesitalia.net/pmwiki/pmwiki.php?n=PmWikiMan.MFit
Page last modified on March 06, 2010 at 02:16