leo/examples/interest/README.md

28 lines
677 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
2023-09-29 20:00:07 +03:00
leo run <function-name> <inputs>
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
2023-09-29 20:00:07 +03:00
leo execute <function_name> <inputs>
```
where `<function_name>` is one of the following:
* `fixed_iteration_interest`
* `bounded_iteration_interest`
2023-09-29 20:00:07 +03:00
Be sure to update `inputs/interest.in` with the desired inputs.