HPParser 2.2
HPParser is a package that is aimed at storing, manipulating and
evaluating expressions. It's not a parser by itself, but
allows HPStack
to exchange symbolic expressions with the stack.
HPParser features creation, modification and evaluation of
symbolic expressions within a C
application, with a support for variables and sub-expressions.
Its main features are :
- capability to process
expressions containing +, -, *, /,
sin, asin, cos, acos, tan, atan, ln, exp, log, pow, root, sqrt, sq,
abs, sign, ==, !=, <, <=, >, >=, summation, !
(other will come)
- capability to define and
attach a C function for any RPL
operator
- capability to handle
variables in the expression
- capability to handle
expressions within expressions (e.g.
Sum (I = 0, 5, I^2) )
Release
notes
2.1 -> 2.2
- Add
support of factorial by the development (of to degree 5) of Stirling
formula
- Avoid
entering an infinite sum
- Retrieve
variable from the directory
2.0 -> 2.1
- Add support for symbolic within symbolic
- Add support for angular mode selection ('prs_alg_set_angle')
- Reorganize the hpparser library so that mathematical
library is only linked when 'prs_alg_eval' is used
- Add support for adding new operator handling
1.1 -> 2.0
- Rename Parser into HPParser
- Rebuild with HPGCC 2.0
1.0 -> 1.1
- Add prs_alg_first_var and prs_alg_next_var for getting the
variables used by an expression (see examples)
Reference
documentation
The reference documentation generated by doxygen is available
here.
Examples
The first example (see source) shows how to build an
expression and evaluate it from within a C application.
The second example (see source) uses also HPStack and shows
how to get an expression from the RPL stack, gets the variables used
by the expression on the stack,
searches them into the current and upper directories (using HPStack), and
then evaluates the expression and pushes
the result onto the stack.
The examples are included in the package you can download.
User's
manual
Coming soon ...