Muparser
muparser is a fast math parser library for C/C++ with (optional) OpenMP support.
Install / Use
/learn @beltoforion/MuparserREADME
muparser - fast math parser library
Change Notes for Revision 2.3.6 (2026-03-07)
Changes:
- Issue https://github.com/beltoforion/muparser/issues/161: Add HasFun function added to query the existance of a function under a given name.
- Issue https://github.com/beltoforion/muparser/issues/93: Add cotangent function
Fixed Compiler Warnings and Errors:
- Issue https://github.com/beltoforion/muparser/issues/160: Refacturing for better source code compatibility with Fil-C; needlessly "clever" code replaced with a more maintainable version.
Change Notes for Revision 2.3.5
New Features:
- added a rnd() function
Fixed Compiler Warnings:
- Fix problem with IntelLLVM fast math
Build System:
- fix for https://github.com/beltoforion/muparser/issues/127 minimum required cmake version set to 3.15
- fix for https://github.com/beltoforion/muparser/issues/132 example1 fails to builds on Windows with mingw gcc
- fix for https://github.com/beltoforion/muparser/issues/147 Build failed with MSVC/C++20
Change Notes for Revision 2.3.4
Maintainance Release with updates of the cmake build system.
Build System:
- cmake is using OpenMP target and setting _UNICODE preprocessor definition
Fixed Compiler Warnings:
- fix for https://github.com/beltoforion/muparser/issues/117 (sprintf deprecated)
Change Notes for Revision 2.3.3
To read the full documentation please go to: http://beltoforion.de/en/muparser.
See Install.txt for installation
Security Fixes:
The following new issues, discovered by oss-fuzz are fixed:
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24167 (Abrt)
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24355 (Heap-buffer-overflow READ 8)
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25402 (Heap-buffer-overflow READ 8)
Bugfixes:
- Fixed a couple of issues for building the C-Interface (muParserDLL.cpp/.h) with wide character support.
- fix for https://github.com/beltoforion/muparser/issues/93
- fix for https://github.com/beltoforion/muparser/issues/94
- fix for https://github.com/beltoforion/muparser/issues/110; new expression size limit is 20000
Fixed Compiler Warnings:
- Visual Studio: Disabled compiler warning 26812 (Prefer 'enum class' over 'enum') Use of plain old enums has not been deprecated and only MSVC is complaining.
- Visual Studio: Disabled compiler warning 4251 (... needs to have dll-interface to be used by clients of class ...) For technical reason the DLL contains the class API and the DLL API. Just do not use the class API if you intent to share the dll accross windows versions. (The same is true for Linux but distributions do compile each application against their own library version anyway)
Changes:
- Adding manual definitions to avoid potential issues with MSVC
- Adding missing overrides
- Added a new option "-DENABLE_WIDE_CHAR" to CMake for building muparser with wide character support
- export muparser targets, such that client projects can import it using find_package() (https://github.com/beltoforion/muparser/pull/81#event-3528671228)
Related Skills
openhue
341.0kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
341.0kElevenLabs text-to-speech with mac-style say UX.
weather
341.0kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.5kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
