<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" type="text/css" href="style/formate.css"/> <meta name="author" content="Ingo Berg"/> <!-- $META --> <meta name="keywords" content="muparser, example, sample, benchmarks, benchmark, performance, comparison, release notes, changes, history"/> <meta name="description" content="Sample code for using muParser"/> <title>muParser - A basic axample and benchmarks</title> <script src="script/functions.js" language="javascript" type="text/javascript"></script> <script type="text/javascript"> imgHome=new Image(); imgHome.src="images/home.png"; imgHomeDark=new Image(); imgHomeDark.src="images/home_dark.png"; imgApi=new Image(); imgApi.src="images/api.png"; imgApiDark=new Image(); imgApiDark.src="images/api_dark.png"; function ChangeButtonImage(num,obj) { window.document.images[num].src=obj.src; } </script> </head> <body> <div class="gradient" id="top"> <div class="header"> muParser - a fast math parser library <br/> <div style="font-size:14pt;">Version 1.32</div> </div> <div style="position:absolute; width:250px; height:100px; top:20px; text-align:center"> <a href="http://sourceforge.net/projects/muparser"> <img src="http://sflogo.sourceforge.net/sflogo.php?group_id=137191&type=15" width="150" height="40" border="0" alt="Get muParser - A fast math parser library at SourceForge.net. Fast, secure and Free Open Source software downloads" /> </a> </div> <div style="position:absolute; width:100px; right:110px; text-align:center; line-height: 1em;"> <a class="white" href="http://www.beltoforion.de" onmouseover="ChangeButtonImage(1,imgHome)" onmouseout="ChangeButtonImage(1,imgHomeDark)"> <img src="images/home_dark.png" border="0" height="40" alt="My home page"/> <br/> <span class="tiny_text">My home<br/>page</span> </a> </div> <div style="position:absolute; width:100px; right:10px; text-align:center; line-height: 1em;"> <a class="white" href="http://muparser.sourceforge.net/classdocu/index.html" onmouseover="ChangeButtonImage(2,imgApi)" onmouseout="ChangeButtonImage(2,imgApiDark)"> <img src="images/api_dark.png" border="0" alt="class documentation" height="40"/> <br/> <span class="tiny_text">muParser<br/>API-doc</span> </a> </div> <!-- <div style="position:absolute; width:100px; right:10px; text-align:center; line-height: 1em;"> <a class="white" href="http://sourceforge.net/project/showfiles.php?group_id=137191" onmouseover="ChangeButtonImage(3,imgDown)" onmouseout="ChangeButtonImage(3,imgDownDark)"> <img src="images/download_dark.png" height="40" border="0" alt="muParser download"/> <br/> <span class="tiny_text">muParser<br/>Download</span> </a> </div> --> </div> <!-- class="gradient" --> <!-- Tabelle mit Hauptinhalt der Seite --> <table id="MainTable" border="0" cellpadding="5" cellspacing="0" style="width:100%; height:100%;"> <tbody> <tr> <td style="vertical-align: top; text-align: center" width="230"> <h3 class="navi_heading navi_info">Introduction</h3> <div class="sidebarlink"> <a href="index.html">About the parser</a><br/> <a href="http://sourceforge.net/news/?group_id=137191">News</a><br/> <a href="mup_links.html">Software using muParser</a><br/> <a href="mup_licence.html">Licence</a><br/> </div> <h3 class="navi_heading navi_blocks">Features</h3> <div class="sidebarlink"> <a href="mup_features.html">Features</a><br/> <a href="mup_features.html#idFeatureOverview">Overview</a><br/> <a href="mup_features.html#idDef2">Built in functions</a><br/> <a href="mup_features.html#idDef3">Built in binary operators</a><br/> </div> <h3 class="navi_heading navi_build">Build instructions</h3> <div class="sidebarlink"> <a href="mup_usage.html#idInstWin">Building on Win32</a><br/> <a href="mup_usage.html#idInstLinux">Building on BSD/Linux</a><br/> <a href="mup_usage.html#idInstMisc">Misc build instructions</a><br/> <a href="mup_usage.html#idInstInc">Including the files</a><br/> <a href="mup_usage.html#idInstInc">Where to ask for help</a><br/> </div> <h3 class="navi_heading navi_list">Math parser interface</h3> <div class="sidebarlink"> <a href="mup_interface.html#idInit">Parser (de)initialization</a><br/> <a href="mup_interface.html#idEval">Evaluating an expression</a><br/> <a href="mup_interface.html#idSetExpr">Setting the expression</a><br/> <a href="mup_interface.html#idDefCharset">Defining identifier charsets</a><br/> <a href="mup_interface.html#idDefVar">Defining parser variables</a><br/> <a href="mup_interface.html#idDefVarEx">Explicit variable definition</a><br/> <a href="mup_interface.html#idDefVarIm">Implicit variable definition</a><br/> <a href="mup_interface.html#idDefConst">Defining constants</a><br/> <a href="mup_interface.html#idDefFun">Defining functions</a><br/> <a href="mup_interface.html#idDefOprt">Defining operators</a><br/> <a href="mup_interface.html#idUnOp">Unary operators</a><br/> <a href="mup_interface.html#idBinOp">Binary operators</a><br/> <a href="mup_interface.html#idQueryVar">Querying variables</a><br/> <a href="mup_interface.html#idQueryConst">Querying constants</a><br/> <a href="mup_interface.html#idDefConst2">Value recognition callbacks</a><br/> <a href="mup_interface.html#idDefConst2">Removing variables/constants</a><br/> <a href="mup_locale.html#idLoc">Localization</a><br/> <a href="mup_interface.html#idErrors">Error handling</a><br/> <a href="mup_version.html#idExample">Example code</a><br/> </div> <h3 class="navi_heading navi_question">Current version</h3> <div class="sidebarlink"> <a href="mup_version.html#idRelNote">Release notes</a><br/> <a href="mup_version.html#idBench">Benchmarks</a><br/> </div> <br/> <div align="center"> <a href="http://www.opensource.org/"><img style="border:0;" src="images/osi.jpg" alt="Open source initiative logo"/></a> <br/> <br/> <a href="http://validator.w3.org/check?uri=referer"> <img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" style="border:0;width:88px;height:31px"/> </a> <br/> <br/> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="CSS ist valide!" /> </a> </div> </td> <td style="height: 100%; padding: 1em; vertical-align: top;"> <!-- This section contains the real page content. pages are created automatically by using the script "build_page.sh" which combines section templated with the navigation bar. This creates webpages that do not rely on php3 or Javascript for serverside or client side html inclusion. //--> <!-- $PLACEHOLDER --> <!-- // // // // Localization // // // --> <h2><a id="idLoc"></a>Localization</h2> <p> Sometimes it is necessary to change decimal separator, argument separator or thousands separator to match a certain locale. The following functions can be used for this purpose: </p> <h3>[DLL interface]</h3> <pre> // german localization mupSetArgSep(hParser, ';'); mupSetDecSep(hParser, ','); mupSetThousandsSep(hParser, '.'); // reset to defaults mupResetLocale(); </pre> <small>See also: <i>example2/example2.c</i>.</small> <h3>[Parser class interface]</h3> <pre> // german localization parser.SetArgSep(';'); parser.SetDecSep(','); parser.SetThousandsSep('.'); // reset to defaults parser.ResetLocale(); </pre> <small>See also: <i>example1/example1.cpp</i>.</small> <hr/> <table border="0" style="width:100%"> <tr> <td>© 2005-2010 <a href="http://beltoforion.de">Ingo Berg</a> | <a href="http://beltoforion.de/privacy_policy/privacy_policy_en.html">Privacy policy</a></td> <td style="text-align:right; padding-right: 3em;"> <a href="#top">^ TOP</a> </td> </tr> </table> <br/> <br/> </td> </tr> </tbody> </table> <!-- <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-1019178-1"); pageTracker._trackPageview(); } catch(err) {} </script> --> </body> </html>