Synopsis

Help:WikiPlugin to display mathematical formulae in a Wiki page.

Usage

<?plugin TeX2png text="$$(a+b)^n=\sum_{k=0}^n{n\choose k}a^k b^{n-k}$$" ?>

gives

$$(a+b)^n=\sum_{k=0}^n{n\choose k}a^k b^{n-k}$$

Arguments

There is only one argument which is the text of the mathematical expression. This text must be enclosed by a dollar $ within a paragraph or two dollars $$ on a separate line. In the last case, all is centered.

To write mathematical formulae, the syntax is the one of LaTeX.

Caveats

This plugin is only to produce readable mathematical formulae. Any other text is not allowed : so if an expression is not enclosed by dollars then it will be displayed by a red text. It is all the same possible to display raw text as $\textrm{\LaTeX}$ by using :

<?plugin TeX2png text="$\textrm{\LaTeX}$" ?>

This plugin is not able to produce sophisticated mathematicals texts with links, cross references... For that, you can use for example LaTeX2html.

Examples

Some Greeks letters : $\alpha$, $\beta$, ... and a formula $\sum_{i=1}^n \frac1{i^2}=\frac{\pi^2}{6}$ to test display in a paragraph.

Exercise 1 Consider the function

$$f(x)=(x^2-4x+3)^{1/2}$$

  1. Give the largest real domain for which f(x) is well defined.
  2. Give a domain on which the function is one-to-one. Using this domain derive a formula for the inverse function $f^{-1}(x)$.
  3. Calculate the derivative f'(x).

Exercise 2 Consider the function :

$$f(x) = \int_0^x e^{-t^2}\,dt, x\in\mathbb R$$
  1. Show that for all r > 0 :
    $$\frac{\pi}{2}\int_0^r t  e^{-t^2}\,dt \leq \int_0^r e^{-x^2}\,dx \int_0^r e^{-y^2}\,dy \leq \frac{\pi}{2} \int_0^{\sqrt{2} r} t e^{-t^2}\,dt$$
    Help : you can use polar coordinates.
  2. Hence find the limit of $f(x)$ as x tends to $\infty$.

PhpWikiDocumentation Help:WikiPlugin

lib/plugin/TeX2png.php (In template 'body' < 'html'):174 Notice[1024]: TeX imagepath not writable. (...repeated 11 times)

Valid XHTML 1.0! Valid CSS!
L'exécution de la page a pris real: 0,239, user: 0,120, sys: 0,020 seconds

Fatal Error:

lib/WikiDB/backend/PearDB.php:1059 Error[256]: wikidb_backend_peardb_mysql: fatal database error



Erreur Fatale de PhpWiki

lib/WikiDB/backend/PearDB.php:1059 Error[256]: wikidb_backend_peardb_mysql: fatal database error


Fatal error: wikidb_backend_peardb_mysql: fatal database error DB Error: insufficient permissions (UPDATE session SET sess_data='wiki_user|O:9:\"_anonuser\":5:{s:7:\"_userid\";s:0:\"\";s:6:\"_level\";i:0;s:6:\"_prefs\";O:15:\"userpreferences\":1:{s:6:\"_prefs\";a:14:{s:6:\"userid\";O:15:\"_userpreference\":1:{s:13:\"default_value\";s:0:\"\";}s:6:\"passwd\";O:15:\"_userpreference\":1:{s:13:\"default_value\";s:0:\"\";}s:9:\"autologin\";O:20:\"_userpreference_bool\":1:{s:13:\"default_value\";b:0;}s:5:\"email\";O:21:\"_userpreference_email\":1:{s:13:\"default_value\";s:0:\"\";}s:11:\"notifyPages\";O:22:\"_userpreference_notify\":1:{s:13:\"default_value\";s:0:\"\";}s:5:\"theme\";O:21:\"_userpreference_theme\":1:{s:13:\"default_value\";s:7:\"smaller\";}s:4:\"lang\";O:24:\"_userpreference_language\":1:{s:13:\"default_value\";s:2:\"fr\";}s:9:\"editWidth\";O:19:\"_userpreference_int\":3:{s:13:\"default_value\";d:80;s:7:\"_minval\";d:30;s:7:\"_maxval\";d:150;}s:11:\"noLinkIcons\";O:20:\"_userpreference_bool\":1:{s:13:\"default_va in /homez.32/autonomie/www/wiki/lib/WikiDB/backend/PearDB.php on line 1059