leo/examples/interest/README.md

27 lines
658 B
Markdown
Raw Normal View History

2022-08-04 20:30:29 +03:00
# Calculating Interest
2022-08-04 00:47:26 +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
## 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:
* `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.
## Executing the Program
To execute this program, run:
```bash
leo execute <function_name>
```
where `<function_name>` is one of the following:
* `fixed_iteration_interest`
* `bounded_iteration_interest`
Be sure to update `inputs/interest.in` with the desired inputs.