An intuitive graphical calculator leveraging the latest features of the RZUF framework and an efficient custom mathematical expression parser. It supports algebraic expressions, shorthand notation (e.g., x(x-4)
), and some mathematical functions like sin
, cos
, log
, asinh
, abs
, mod
, etc. User can choose between linear (decimal), logarithmic, and pi-based scales for the X and Y axes, as well as preview function values at specific points by hovering over the graph with the cursor. The tool is available in both English and Polish.
- Rendering multiple expressions at once
- Improved error highlighing in mathematical expressions
- Improved rendering accuracy (addressing issues with asymptotes)
You can find the framework repository here.
The latest binaries are available in the Releases section on the right. Just download the zip file appropriate for your system (Windows x64 or Linux x64), extract it, and run mathgraph.exe
(or mathgraph
if you are on Linux).
RZUF3 requires the following libraries: SDL2
, SDL2_image
, SDL2_ttf
(min. >=2.0.18, recommended >=2.20.0), spdlog
.
-
Make sure you have Visual Studio (with CMake support and vcpkg) installed.
-
Install the necessary packages:
vcpkg install sdl2 sdl2-image sdl2-ttf spdlog
-
Clone the repo using the command:
git clone --recurse-submodules https://github.com/izawartka/mathgraph
or just download the ZIP archive from the repository page. -
Ensure that a proper path to the vcpkg toolchain file is set in the
CMakeLists.txt
file. Default isC:/src/vcpkg/scripts/buildsystems/vcpkg.cmake
. -
Open the Cmake project in Visual Studio, wait for CMake to configure the project, and then build it using the
x64-Release
orx64-Debug
configuration. -
Done! The binary file should be located in the
bin
directory.
-
Install the necessary packages. For Debian-based distributions, use the command:
sudo apt install git cmake g++ ninja-build libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libspdlog-dev -y
-
Clone the repo:
git clone --recurse-submodules https://github.com/izawartka/mathgraph
. -
Navigate to the directory:
cd mathgraph
. -
Build the project
For the release version:
cmake --preset x64-Release
cmake --build --preset x64-Release
For the debug version:
cmake --preset x64-Debug
cmake --build --preset x64-Debug
-
Done! The binary file should be located in the
bin
directory.
masuo / izawartka