# cultarchive851-coder/sdalab architecture

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

- Interactive diagram: https://gitdiagram.com/cultarchive851-coder/sdalab
- Repository: https://github.com/cultarchive851-coder/sdalab

## Overview

This repository contains four standalone C coursework programs, not a shared application: two evaluate a piecewise function, and two approximate a value with series variants. Each program reads its input from the user and prints a result; the LAB2 programs also report an operation count. The LAB2 programs call the C math library’s sqrt function. The README excerpts provide no further capability descriptions, and the source shows no shared runtime modules.

Main entry points: [`LAB2/bibo.c`](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB2/bibo.c) (Direct series), [`LAB2/bibo2.c`](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB2/bibo2.c) (Recurrence series), [`LAB1/bezlog.c`](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB1/bezlog.c) (Nested function), [`LAB1/slog.c`](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB1/slog.c) (Compact function)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Console user"))
node_bezlog["Nested function<br/>[bezlog.c]"]
node_slog["Compact function<br/>[slog.c]"]
node_bibo["Direct series<br/>[bibo.c]"]
node_bibo2["Recurrence series<br/>[bibo2.c]"]
node_math["C math library"]

node_user -->|"enters x"| node_bezlog
node_bezlog -->|"prints result"| node_user
node_user -->|"enters x"| node_slog
node_slog -->|"prints result"| node_user
node_user -->|"enters n"| node_bibo
node_bibo -->|"prints result"| node_user
node_bibo -->|"calls sqrt"| node_math
node_user -->|"enters n"| node_bibo2
node_bibo2 -->|"prints result"| node_user
node_bibo2 -->|"calls sqrt"| node_math

click node_bezlog "https://github.com/cultarchive851-coder/sdalab/blob/main/LAB1/bezlog.c"
click node_slog "https://github.com/cultarchive851-coder/sdalab/blob/main/LAB1/slog.c"
click node_bibo "https://github.com/cultarchive851-coder/sdalab/blob/main/LAB2/bibo.c"
click node_bibo2 "https://github.com/cultarchive851-coder/sdalab/blob/main/LAB2/bibo2.c"

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_user toneBlue
class node_bezlog,node_slog,node_bibo,node_bibo2 toneTeal
class node_math toneIndigo
```

## Components

### Other components

- **Console user**
- [Nested function](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB1/bezlog.c): `LAB1/bezlog.c`
- [Compact function](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB1/slog.c): `LAB1/slog.c`
- [Direct series](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB2/bibo.c): `LAB2/bibo.c`
- [Recurrence series](https://github.com/cultarchive851-coder/sdalab/blob/main/LAB2/bibo2.c): `LAB2/bibo2.c`
- **C math library**

## Connections

- Console user → Nested function: enters x (evidence: `LAB1/bezlog.c`)
- Nested function → Console user: prints result (evidence: `LAB1/bezlog.c`)
- Console user → Compact function: enters x (evidence: `LAB1/slog.c`)
- Compact function → Console user: prints result (evidence: `LAB1/slog.c`)
- Console user → Direct series: enters n (evidence: `LAB2/bibo.c`)
- Direct series → Console user: prints result (evidence: `LAB2/bibo.c`)
- Direct series → C math library: calls sqrt (evidence: `LAB2/bibo.c`)
- Console user → Recurrence series: enters n (evidence: `LAB2/bibo2.c`)
- Recurrence series → Console user: prints result (evidence: `LAB2/bibo2.c`)
- Recurrence series → C math library: calls sqrt (evidence: `LAB2/bibo2.c`)
