Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.34 KB

File metadata and controls

54 lines (39 loc) · 1.34 KB

🐍 Python - Numerical algorithms

This $Python$ version focuses on visual learning and formatted output to understand the result of numerical methods, representing them in a visually pleasing way.

Warning

The functions are evaluated in formulas already defined in the code, change the part of the code if needed.

   def f(self: 'AlgoritmEc', x:float) -> float:
       return self.aBC[0] * x**2 + self.aBC[1] * x - self.aBC[2]

   def fn(self: 'AlgoritmEc', t: float) -> float:
       return 3 * math.exp(0.68*t) - 1100*t 

   def f_prime(self: 'AlgoritmEc', t: float) -> float:
       return 2.04 * math.exp(0.68*t) - 1100

⚙️ Requirements

To run this script, you need to install some dependencies in your Python environment. To do this, you can use pip or pacman (on Arch Linux)

  • Python 3.x installed

  • Dependencies:

    • prettytable

    • colorama

🛠️ Installation

  • Clone the repository and install the dependencies
git clone https://github.com/ch4rum/algNumeric.git
cd algNumeric/Python
  • Then install dependencies:
# In windows & some linux 
pip install colorama prettytable

# In Arch & some derivate
sudo pacman -S --noconfirm python-colorama python-prettytable

🎸 Usage

  • Run the script with your desired parameters
python3 main.py [options]