-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
Here goes a description of the input required for your program. | ||
|
||
# Program input | ||
|
||
The program options can be displayed by running | ||
`python ./src/main.py -h` | ||
|
||
This will return the possible input options and type of parameters. | ||
|
||
For example, to calculate the side length of a square with the same area as a circle of radius r, you would run | ||
`python ./src/main.py square -r 4` | ||
|
||
For the side length of a pentagon, you would provide | ||
`python ./src/main.py square -r 4` | ||
|
||
The program will then return the side length of the selected object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
Here goes a description of the scientific method and explanation of the keywords in terms of a method reference. | ||
|
||
This is to use latex-style equations in github markdown - unfortunatly it is not as nifty as i.e. jupyter: | ||
|
||
<img src="https://render.githubusercontent.com/render/math?math=e^{i \pi} = -1"> | ||
|
||
# Methods | ||
|
||
The program uses three functions to calculate the desired values. | ||
|
||
## The area of a circle | ||
The area is calculated using | ||
<img src="https://render.githubusercontent.com/render/math?math=A = \pi r^2"> | ||
|
||
## The side length of a square | ||
The side length of a square with given area is calculated using | ||
<img src="https://render.githubusercontent.com/render/math?math=a = \sqrt{A}"> | ||
|
||
|
||
## The side length of a pentagon | ||
The side length of a pentagon with given area is calculated using | ||
<img src="https://render.githubusercontent.com/render/math?math=a = \sqrt{\frac{4}{\sqrt{5(5+2*\sqrt{5})}} \cdot A}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
Here goes a description of the parameters and their validity range. | ||
|
||
* The input parameter `r` - the radius of the circle - can only be a real number larger or equal to zero. | ||
* The input string is restricted to `square` or `pentagon`, no other methods have been implemented so far. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- *this can be generated using tools like sphinx* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sphinx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python -m pip install -r requirements.txt |