lucas-barake / inclinometer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A calculator for the angle of inclination of a ramp given the acceleration and the coefficient of friction of an object sliding on it.

How to run it locally

To run this program locally, you need to have Rust and Cargo installed on your machine. You can follow the instructions here to install them.

Then, you can clone this repo and navigate to the project directory:

git clone
cd inclinometer

Finally, you can run and build the program with Cargo:

cargo run

The program will read the data from the input.csv file and write the results to the output.csv file.

Input Format

The input file should be a CSV file with two columns: a and uk. The a column represents the acceleration of the object in m/s², and the uk column represents the coefficient of friction. The columns should be separated by semicolons (;). For example:

a;uk
8.54;0.2
7.53;0.5
7.2;0.6
7.87;0.4
8.87;0.1

About


Languages

Language:Rust 87.7%Language:JavaScript 12.3%