A simple C++ program which utilizes an OpenGL shader to visualize the convergence of the fixed-point iteration numerical method.
Given any function
This program visualizes which pairs of the above parameters:
![]() |
|---|
![]() |
|---|
![]() |
|---|
![]() |
|---|
In the main window of the application a graph of
- zoom in/out by scrolling the mouse or using a touchpad
- click and drag to move the view
The secondary window is meant for entering the function
- C++17 compliant compiler
- CMake (>= 3.22)
- SFML library, along with System, Window and Graphics components (>= 2.5)
- Boost library; system, filesystem, math and dll components needed (>= 1.74)
- pkg-config (>= 0.29)
- gtkmm (API version 3.0)
Make sure that all libraries are located in a directory, where CMake can find them.
git clone https://github.com/roghed/convergence
cd convergence
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
cmake --build build
This program uses the C++ Mathematical Expression Toolkit Library:
File: exprtk.hpp
Author: Arash Partow (1999-2023) URL: https://www.partow.net/programming/exprtk/index.html
Copyright notice: Free use of the C++ Mathematical Expression Toolkit Library is permitted under the guidelines and in accordance with the most current version of the MIT License.
https://www.opensource.org/licenses/MIT
This program uses the UbuntuMono-Regular font which is distributed under the UBUNTU FONT LICENSE Version 1.0.
For more information see the Ubuntu Font License.txt file provided with the project.
Portions of this software are copyright � 2006 The FreeType Project (www.freetype.org). All rights reserved.



