How migueloomar/metodosnumericos works
Project type and purpose
• This is an educational repository (“Ejercicios de Cómputo Científico”) composed of five sets of Python scripts, each set corresponding to a homework assignment.
• Its purpose is to demonstrate numerical‐analysis algorithms: physics simulations, error analysis, linear algebra solvers, root‐finding methods, and interpolation/splines, with interactive inputs and graphical outputs.
File structure
• Top level:
• Asignacion1 … Asignacion5 directories
• README.md
• Each AsignacionN directory contains Ejercicio_M.py scripts (and for some, a PDF statement), plus a utility module in Asignacion5.
• There are no external services or separate “frontend”/“backend” tiers; it’s a monolithic CLI+compute+plot application.
README for architecture clues
• README describes the numerical methods implemented in each assignment.
• Mentions interactive inputs and generation of graphs.
a. Main components to show:
• User Interface (CLI/Input prompt)
• Assignment Modules (Asignacion1 – Asignacion5)
• Core Computation Engine (algorithms: Euler, Horner, LU, Newton, Splines, etc.)
• Utilities/Shared Code (e.g., splines_cubicas.py)
• External Libraries (NumPy, SciPy if used, Matplotlib)
• Output (console results, plots)
b. Relationships & interactions:
• User invokes Ejercicio_X.py → script parses input → calls algorithm functions → algorithm uses NumPy for numerics → returns results → script renders plot via Matplotlib → displays results/plots.
• Shared utilities module is imported by any Ejercicio script that needs spline code.
c. Architectural patterns/design principles:
• Modular separation per assignment
• Single‐responsibility: each script implements one exercise
• Reuse of shared utilities in Asignacion5
d. Key technologies/frameworks/libraries:
• Python 3.x
• NumPy (vector/matrix ops)
• Matplotlib (plots)
• Standard library (math, sys, argparse)
Detail
• Which modules generate graphs vs. only console output.
• Data flow for a typical run: user inputs parameters → solver computes → returns numeric results → plot rendered.