# addulasaikiran-ops/calculator architecture

> Architecture diagram of the GitHub repository addulasaikiran-ops/calculator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/addulasaikiran-ops/calculator
- Repository: https://github.com/addulasaikiran-ops/calculator

## Overview

This is a small browser-based scientific calculator. Users enter an expression through the calculator controls or keyboard, choose degree or radian mode, and evaluate it to a displayed result or error. The sampled script shows input editing, expression conversion and evaluation in one runtime module; the HTML and CSS are present in the tree, but their contents were not provided, so their wiring and capabilities are not inferred.

Main entry points: [`index.html`](https://github.com/addulasaikiran-ops/calculator/blob/main/index.html) (Calculator controls), [`script.js`](https://github.com/addulasaikiran-ops/calculator/blob/main/script.js) (Calculator logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calculator["Calculator runtime"]
  node_controls["Calculator controls<br/>[index.html]"]
  node_display["Expression display<br/>[index.html]"]
  node_logic["Calculator logic<br/>[script.js]"]
  node_styling["Interface styling<br/>[style.css]"]
end

node_user(("User"))

node_user -.->|"enters input"| node_controls
node_controls -->|"handles events"| node_logic
node_logic -->|"updates value"| node_display
node_user -.->|"reads result"| node_display

click node_controls "https://github.com/addulasaikiran-ops/calculator/blob/main/index.html"
click node_display "https://github.com/addulasaikiran-ops/calculator/blob/main/index.html"
click node_logic "https://github.com/addulasaikiran-ops/calculator/blob/main/script.js"
click node_styling "https://github.com/addulasaikiran-ops/calculator/blob/main/style.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_controls,node_display,node_logic,node_styling,node_user toneBlue
```

## Components

### Calculator runtime

- [Calculator controls](https://github.com/addulasaikiran-ops/calculator/blob/main/index.html): `index.html`
- [Expression display](https://github.com/addulasaikiran-ops/calculator/blob/main/index.html): `index.html`
- [Calculator logic](https://github.com/addulasaikiran-ops/calculator/blob/main/script.js): `script.js`
- [Interface styling](https://github.com/addulasaikiran-ops/calculator/blob/main/style.css): `style.css`

### Other components

- **User**

## Connections

- User → Calculator controls: enters input
- Calculator controls → Calculator logic: handles events (evidence: `script.js`)
- Calculator logic → Expression display: updates value (evidence: `script.js`)
- User → Expression display: reads result
