Revision [16806]

This is an old revision of SimpleMathFormula made by GllVh0 on 2007-05-31 10:49:42.

 

Simple Math Formulae in Wikka


This is, I'll readily admit, almost a direct steal from Wikini. It uses a rendering engine to convert simple math scripts to images. For details on syntax see http://wiki.algebra.com/index.php/Formula_plotting_feature_guide

Note that for multi-line actions to work you must modify wikka.php as per the instructions at TableAction (thanks JavaWoman, or I'd never have gotten this working).

Place the following code as a file actions/math.php
<?php
/*
titre: Action Math pour Wikini
Auteur: Clément Seifert
License: GPL
slightly modified by GmBowen for Wikka
example: {{math expression="x^2/sqrt(sin(x))"}}
*/


$baseurl = "http://www.algebra.com/cgi-bin/plot-formula.mpl?expression=";
$fullurl = $baseurl . rawurlencode($expression);

echo "<img src=\"$fullurl\" alt=\"expression math\" valign=\"middle\"/>";

?>


examples of actions that can be implemented in wikka are:
%%
Unknown action ""math""
Unknown action ""math""
Unknown action ""math""
Unknown action ""math""
Unknown action ""math""
Unknown action; the action name must not contain special characters.

{{math expression="(
matrix( 2, 3,
x, y,
x/2, y 3
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki