/usr/share/doc/libmuparser-doc/html/mup_features.html is in libmuparser-doc 2.2.3-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | <?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="features, muparser, operator, function, math parser, C++"/>
<meta name="description" content="List of operators and functions supported by muparser"/>
<title>List of muparser features</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:10pt;">Version 2.1.0</div>
</div>
<div style="position:absolute; width:250px; height:100px; top:20px; text-align:center">
<a href="http://sourceforge.net/projects/muparser">
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://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 dark_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 dark_text">muParser<br/>API-doc</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="mup_intro.html#idRelNote">Release notes</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/>
<a href="mup_features.html#idDef4">Other 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#idCompilerSwitches">Compiler switches</a><br/>
<a href="mup_usage.html#idHelp">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#idEvalSimple">Single return value</a><br/>
<a href="mup_interface.html#idEvalMulti">Multiple return values</a><br/>
<a href="mup_interface.html#idEvalBulk">Bulk mode</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_oprt.html#idAddFunOp">Adding functionand operators</a><br/>
<a href="mup_interface_oprt.html#idDefFun">Defining functions</a><br/>
<a href="mup_interface_oprt.html#idDefOprt">Defining operators</a><br/>
<a href="mup_interface_oprt.html#idUnOp">Unary operators</a><br/>
<a href="mup_interface_oprt.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#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">
Valid XHTML 1.0 Transitional
</a>
<br/>
<br/>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
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 -->
<!--
//
//
//
// Features
//
//
//
-->
<br/>
<h2><a name="idFeature">Features</a></h2>
<p>
The following is a list of the features currently supported by the parser library.
The primary objective is to keep it as extensible as possible whilst ensuring a maximum parsing speed. Extending the parser is mostly based on allowing a user to add custom callbacks which require only an absolute minimum of code. For instance you need exactly 2 lines of code to add a new function.
But extending the parser may not be necessary at all since it comes with a powerful default
implementation. Here is the (incomplete) list of features:
</p>
<!--
//
// Features / Overview
//
-->
<h3><a name="idFeatureOverview">Overview</a></h3>
<ul>
<li><b>Easy to use</b>
<ul>
<li>You need only a <a href="mup_version.html#idExample">few lines of code</a> to evaluate en expression</li>
</ul>
</li>
<li><b>Optimized for speed</b>
<ul>
<li><a href="mup_version.html#idBench">High parsing performance</a></li>
<li>if-then-else operator with <a href="http://en.wikipedia.org/wiki/Lazy_evaluation">lazy evaluation</a></li>
<li>Compute multiple comma separated subexpressions in a single evaluation. (i.e. "sin(x), x+y, x*x")</li>
</ul>
</li>
<li><b>User-defined operators</b>
<ul>
<li>binary operators</li>
<li>postfix operators</li>
<li>infix operators</li>
</ul>
</li>
<li><b>User-defined functions</b>
<ul>
<li>with a fixed number of up to five arguments</li>
<li>with variable number of arguments</li>
<li>with a single string argument (for database queries)</li>
</ul>
</li>
<li><b>User-defined constants.</b>
<ul>
<li>numeric constants</li>
<li>string constants</li>
</ul>
</li>
<li><b>User-defined variables.</b>
<ul>
<li>unlimited in number</li>
<li>definable at parser runtime by the parser</li>
<li>assigning variables in terms of other variables is possible</li>
</ul>
</li>
<li><b>Custom value recognition callbacks</b>
<ul>
<li>support for binary and hex values.</li>
<li>can be used to implement database queries</li>
</ul>
</li>
<li><b>Default implementaion with many features</b>
<ul>
<li>25 <a href="#idDef1">predefined functions</a>.</li>
<li>14 <a href="#idDef2">predefined operators</a>.</li>
<li>Supports numerical differentiation with respect to a given variable.</li>
<li>Assignement operator is supported</li>
</ul>
</li>
<li><b>Portability</b>
<ul>
<li>Project / makefiles for MSVC, mingw, autoconf, bcc</li>
<li>ISO 14882 compliant code</li>
<li>DLL version usable from every language able to use function exported in C-style</li>
</ul>
</li>
<li><b>Unit support</b>
<ul>
<li>Use postfix operators as unit multipliers <code>(3m -> 0.003)</code></li>
</ul>
</li>
<li><b>Localization</b>
<ul>
<li>Argument separator, decimal separator, thousands separator can be adjusted to your locale</code></li>
</ul>
</li>
</ul>
<!--
//
//
//
// Default implementation
//
//
//
-->
<h3><a name="idDef1">The default implementation</a></h3>
<p>
This section gives an overview on the default features supported by the parser. The default
implementation is defined in the class <code>mu::Parser</code> located in the file
<i>muParser.cpp</i>. The DLL-version uses this class internally.
</p>
<!--
//
// Features / Built in functions
//
-->
<h4><a name="idDef2">Built-in functions</a></h4>
<p>
The following table gives an overview of the functions supported by the
default implementation. It lists the function names, the number of
arguments and a brief description.
</p>
<table border="1">
<thead>
<tr>
<td><b>Name</b></td> <td><b>Argc.</b></td> <td><b>Explanation</b></td>
</tr>
</thead>
<tbody>
<tr><td><code>sin</code></td> <td align="center">1</td> <td>sine function</td></tr>
<tr><td><code>cos</code></td> <td align="center">1</td> <td>cosine function</td></tr>
<tr><td><code>tan</code></td> <td align="center">1</td> <td>tangens function</td></tr>
<tr><td><code>asin</code></td> <td align="center">1</td> <td>arcus sine function</td></tr>
<tr><td><code>acos</code></td> <td align="center">1</td> <td>arcus cosine function</td></tr>
<tr><td><code>atan</code></td> <td align="center">1</td> <td>arcus tangens function</td></tr>
<tr><td><code>sinh</code></td> <td align="center">1</td> <td>hyperbolic sine function</td></tr>
<tr><td><code>cosh</code></td> <td align="center">1</td> <td>hyperbolic cosine</td></tr>
<tr><td><code>tanh</code></td> <td align="center">1</td> <td>hyperbolic tangens function</td></tr>
<tr><td><code>asinh</code></td> <td align="center">1</td> <td>hyperbolic arcus sine function</td></tr>
<tr><td><code>acosh</code></td> <td align="center">1</td> <td>hyperbolic arcus tangens function</td></tr>
<tr><td><code>atanh</code></td> <td align="center">1</td> <td>hyperbolic arcur tangens function</td></tr>
<tr><td><code>log2</code></td> <td align="center">1</td> <td>logarithm to the base 2</td></tr>
<tr><td><code>log10</code></td> <td align="center">1</td> <td>logarithm to the base 10</td></tr>
<tr><td><code>log</code></td> <td align="center">1</td> <td>logarithm to the base 10</td></tr>
<tr><td><code>ln</code></td> <td align="center">1</td> <td>logarithm to base e (2.71828...)</td></tr>
<tr><td><code>exp</code></td> <td align="center">1</td> <td>e raised to the power of x</td></tr>
<tr><td><code>sqrt</code></td> <td align="center">1</td> <td>square root of a value</td></tr>
<tr><td><code>sign</code></td> <td align="center">1</td> <td>sign function -1 if x<0; 1 if x>0</td></tr>
<tr><td><code>rint</code></td> <td align="center">1</td> <td>round to nearest integer</td></tr>
<tr><td><code>abs</code></td> <td align="center">1</td> <td>absolute value</td></tr>
<tr><td><code>min</code></td> <td align="center">var.</td> <td>min of all arguments</td></tr>
<tr><td><code>max</code></td> <td align="center">var.</td> <td>max of all arguments</td></tr>
<tr><td><code>sum</code></td> <td align="center">var.</td> <td>sum of all arguments</td></tr>
<tr><td><code>avg</code></td> <td align="center">var.</td> <td>mean value of all arguments</td></tr>
</tbody>
</table>
<h4><a name="idDef3">Built-in binary operators</a></h4>
<p>
The following table lists the default binary operators supported by the parser.
</p>
<table border="1">
<thead>
<tr><td><b>Operator</b></td> <td><b>Meaning</b></td> <td><b>Priority</b></td></tr>
</thead>
<tbody>
<tr><td><code>=</code></td> <td>assignement</td> <td>-1</td></tr>
<tr><td><code>&&</code></td> <td>logical and</td> <td> 1</td></tr>
<tr><td><code>||</code></td> <td>logical or</td> <td> 2</td></tr>
<tr><td><code><=</code></td> <td>less or equal</td> <td> 4</td></tr>
<tr><td><code>>=</code></td> <td>greater or equal</td> <td> 4</td></tr>
<tr><td><code>!=</code></td> <td>not equal</td> <td> 4</td></tr>
<tr><td><code>==</code></td> <td>equal</td> <td> 4</td></tr>
<tr><td><code>></code></td> <td>greater than</td> <td> 4</td></tr>
<tr><td><code><</code></td> <td>less than</td> <td> 4</td></tr>
<tr><td><code>+</code></td> <td>addition</td> <td> 5</td></tr>
<tr><td><code>-</code></td> <td>subtraction</td> <td> 5</td></tr>
<tr><td><code>*</code></td> <td>multiplication</td> <td> 6</td></tr>
<tr><td><code>/</code></td> <td>division</td> <td> 6</td></tr>
<tr><td><code>^</code></td> <td>raise x to the power of y</td> <td> 7</td></tr>
</tbody>
</table>
<small>*The assignment operator is special since it changes one of its
arguments and can only by applied to variables.</small>
<h4><a name="idDef4">Other operators</a></h4>
<p>
muParser has built in support for the if then else operator. It uses lazy evaluation in order
to make sure only the necessary branch of the expression is evaluated.
</p>
<table border="1">
<thead>
<tr><td><b>Operator</b></td> <td><b>Meaning</b></td> <td><b>Remarks</b></td></tr>
</thead>
<tbody>
<tr><td><code>?:</code></td> <td>if then else operator</td> <td>C++ style syntax</td></tr>
</tbody>
</table>
<hr/>
<table border="0" style="width:100%">
<tr>
<td>© 2005-2011 Ingo Berg</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.");
</script>
<script type="text/javascript">
try
{
}
catch(err) {}
</script>
</body>
</html>
|