2022-08-04 20:30:29 +03:00
|
|
|
# Calculating Interest
|
2022-08-04 00:47:26 +03:00
|
|
|
|
2022-08-09 02:51:37 +03:00
|
|
|
This program provides utilities for calculating interest over a fixed or bounded number of iterations.
|
2022-08-04 02:11:32 +03:00
|
|
|
|
2022-08-04 20:30:29 +03:00
|
|
|
## Building the Program
|
2022-08-04 02:11:32 +03:00
|
|
|
|
2022-08-04 20:30:29 +03:00
|
|
|
To compile this program, run:
|
|
|
|
```bash
|
|
|
|
leo build
|
|
|
|
```
|
2022-08-04 00:47:26 +03:00
|
|
|
|
2022-08-04 20:30:29 +03:00
|
|
|
## Running the Program
|
|
|
|
|
|
|
|
To run this program, run:
|
2022-08-04 00:47:26 +03:00
|
|
|
```bash
|
2022-08-04 20:30:29 +03:00
|
|
|
leo run <function_name>
|
2022-08-04 00:47:26 +03:00
|
|
|
```
|
2022-08-04 20:30:29 +03:00
|
|
|
where `<function_name>` is one of the following:
|
2022-08-09 02:51:37 +03:00
|
|
|
* `fixed_iteration_interest`
|
|
|
|
* `bounded_iteration_interest`
|
2022-08-04 20:30:29 +03:00
|
|
|
|
|
|
|
Be sure to update `inputs/interest.in` with the desired inputs.
|