[Equa_Plot] Support multiple functions and derivative overlay; add a WebAssembly build

Aperta
#391 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp, wasm

Direzione di ricerca

Start with Equations_Field/Equa_Plot/main.cpp:181-192,241-256, where the issue identifies the single formula buffer and PlotLine call. Review the existing plotting and build setup, then determine how multiple functions, derivative overlays, and the Emscripten browser build fit together. Done means four simultaneous functions with a legend, a toggleable f'(x) overlay, and a Chromium demo that loads without console errors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: equations-field priority: P3 size: L type: enhancement

Summary

The UI has a single hard-coded "formula1" header and one line. Natural extensions for a maths-teaching repo: several functions with their own colours, a numeric derivative overlay (linking to the Differentiator project), and an Emscripten build so the plotter can be embedded on the docs site.

Location

  • Equations_Field/Equa_Plot/main.cpp:181-192,241-256

Evidence

Only one formula buffer exists (static char formula[128], line 182) and one PlotLine call (line 247).

Expected

Add/remove functions, toggle f'(x) overlay, and a browser demo.

Proposed fix

  1. std::vector<Function{std::string text; ImVec4 color; exprtk objects; error}> with +/- buttons.
  2. Optional derivative overlay via central differences (or exprtk's derivative() helper).
  3. Emscripten target (GLFW -> -sUSE_GLFW=3, WebGL2, imgui_impl_opengl3 with GLSL ES 3.0) published to the docs site.

Acceptance criteria

  • At least 4 simultaneous functions with legend
  • f'(x) overlay toggle
  • WASM build loads in Chromium with no console errors

Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref fractals-equations-061


Generated by Claude Code

Lingua principale
C++
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.