This
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) - 1100To 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
-
- 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- Run the script with your desired parameters
python3 main.py [options]