[Lorenz-Attractor] Add CMake build and on-screen editing of sigma/rho/beta/solver

Open
#402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cmake, cpp

Research direction

Start with Math_Chaos/Lorenz-Attractor/Makefile and the cited sections of Math_Chaos/Lorenz-Attractor/main.cpp around lines 254 and 377-430; read how parameters and solver names are currently displayed and changed. Then inspect the existing build dependencies before choosing the CMake setup and parameter UI. Done means the demo builds across the listed platforms and lets users edit parameters without recompiling; the optional second trajectory is outside the required criteria.

Written by the indexing model from the issue text.

Description

area: math-chaos priority: P3 size: M type: enhancement

Summary

Parameters can only be changed multiplicatively (x1.2) via undocumented keys, the status line shows the solver as a number, and there is only a Makefile, with no Windows support despite the docs claim. A small CMake build plus a parameter overlay (or Dear ImGui) would make the demo far more usable. A WebGL port would also suit the docs site, which already has a 2D/3D Python Lorenz in Math_Chaos/Theories_Visuals.

Location

  • Math_Chaos/Lorenz-Attractor/Makefile:1-12
  • Math_Chaos/Lorenz-Attractor/main.cpp:254
  • Math_Chaos/Lorenz-Attractor/main.cpp:377-430

Evidence

param_str prints solver=%d, and solverNames is never used.

Expected

Cross-platform CMake build (freeglut via find_package(GLUT)) with a parameter panel, solver names, and type-in values.

Proposed fix

  1. Add CMakeLists.txt with find_package(OpenGL REQUIRED) and find_package(GLUT REQUIRED).
  2. Show solverNames[solver] and allow direct numeric input (or ImGui sliders) for sigma, rho, beta, dt and the initial point.
  3. Optional: a second trajectory from a perturbed initial point to visualise sensitive dependence.

Acceptance criteria

  • Builds on Linux/macOS/Windows via CMake
  • Parameters editable without recompiling

Repository audit, November 2026 · Phase 9 · New features · evidence: found by code reading · ref chaos-native-080


Generated by Claude Code

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.