How techupdate427-debug/calcpro-modern works
CalcPro is a browser-based scientific calculator with an Android/Capacitor project in the repository; the sampled runtime shows the React application, not native calculation logic. A user selects a mode in the tab bar, works in its panel, and receives calculations or visual results. Major modes include scientific calculation, statistics, matrices, solving, calculus, graphing, conversions, finance, geometry, and AI photo solving. The README is an uncustomized Vite template, so capabilities are inferred from the source tree and sampled panels; unsampled panel wiring is not asserted.
Main entry points: App.jsx App coordinator · math.js Safe math evaluator · IntegralPanel.jsx Calculus tools · AIPhotoPanel.jsx AI photo solver
Components 21
Application shell
- React entry
src/main.jsx - App coordinator
src/App.jsx - Mode tabs
src/components/Tabs.jsx - Theme bar
src/components/TopBar.jsx
Math tools
- Scientific calculator
src/components/panels/CalcPanel.jsx - Statistics
src/components/panels/StatPanel.jsx - Matrix operations
src/components/panels/MatrixPanel.jsx - Equation solver
src/components/panels/SolverPanel.jsx - Calculus tools
src/components/panels/IntegralPanel.jsx - Function graphing
src/components/panels/GraphPanel.jsx
Specialized tools
- Unit conversion
src/components/panels/ConvertPanel.jsx - Finance calculator
src/components/panels/FinancePanel.jsx - Geometry solver
src/components/panels/GeometryPanel.jsx - AI photo solver
src/components/panels/AIPhotoPanel.jsx - Constants reference
src/components/panels/ConstantsPanel.jsx - Formula reference
src/components/panels/FormulasPanel.jsx - Number theory
src/components/panels/NumberTheoryPanel.jsx
Calculation layer
- Safe math evaluator
src/utils/math.js - Numerical calculus
src/utils/calculus.js
Other components
- User
- OpenRouter AI service
Connections 24
- User → React entry: opens app
- React entry → App coordinator: renders
src/main.jsx - User → Mode tabs: selects mode
src/components/Tabs.jsx - App coordinator → Mode tabs: sets active mode
src/App.jsx - App coordinator → Theme bar: renders
src/App.jsx - App coordinator → Scientific calculator: renders
src/App.jsx - App coordinator → Statistics: renders
src/App.jsx - App coordinator → Matrix operations: renders
src/App.jsx - App coordinator → Equation solver: renders
src/App.jsx - App coordinator → Calculus tools: renders
src/App.jsx - App coordinator → Function graphing: renders
src/App.jsx - App coordinator → Unit conversion: renders
src/App.jsx - App coordinator → Finance calculator: renders
src/App.jsx - App coordinator → Geometry solver: renders
src/App.jsx - App coordinator → AI photo solver: renders
src/App.jsx - Scientific calculator → Safe math evaluator: evaluates expressions
src/components/panels/CalcPanel.jsx - Statistics → Safe math evaluator: uses math utilities
src/components/panels/StatPanel.jsx - Equation solver → Safe math evaluator: uses math utilities
src/components/panels/SolverPanel.jsx - Function graphing → Safe math evaluator: compiles functions
src/components/panels/GraphPanel.jsx - Calculus tools → Safe math evaluator: compiles functions
src/components/panels/IntegralPanel.jsx - Calculus tools → Numerical calculus: calls numerical methods
src/components/panels/IntegralPanel.jsx - Numerical calculus → Safe math evaluator: uses evaluator
src/utils/calculus.js - AI photo solver → OpenRouter AI service: requests AI solution
src/components/panels/AIPhotoPanel.jsx - User → AI photo solver: submits photo
src/components/panels/AIPhotoPanel.jsx