diff --git a/README.md b/README.md index d8f97bb..aaaa2c6 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ Converter NOW is an effective unit and currencies converter ### Screenshots -SS_android_01.jpg SS_android_02.jpg SS_android_03.jpg SS_android_04.jpg + - + The upper 4 screenshots show the main screen of the app on an android phone. The screenshot below shows how easy the app adapts on large screens in a PWA. @@ -44,37 +44,21 @@ If you belive in this project you can donate to this [PayPal donation link](http ### Structure of the project -```mermaid -graph TD; - main-->AppManager; - AppManager-->ConversionManager; - AppManager-->Others-Unimplemented-Managers; - AppManager-->SettingsPage; - AppManager-->ReorderPage; - ConversionManager-->ConversionPage; -``` + ### Conversion algorithm I imagined a conversion as a tree graph. Here I reported part of the graph of the length conversion: -```mermaid -graph TD; - centimeter --"x0.01"--> meter; - inch --"x2.54"--> centimeter; - foot --"x12"--> inch; - kilometer --"x1000"--> meter; - yard --"x0.9144"--> meter; - mile --"x1760"--> yard; -``` + As you can see, all units depends by other units by 1 (or more) costant. Most of the conversion between two units $`x`$ and $`y`$ could be done with one of these structures: -$`y=ax+b`$ + -$`y=\frac{a}{x}+b`$ + -The first one is the most common linear conversion (the costant help with faraday-celsius conversion). The second one is used in fuel conversion like $`\frac{km}{l}`$ to $`\frac{l}{100 km}`$. +The first one is the most common linear conversion (the costant help with faraday-celsius conversion). The second one is used in fuel conversion like km/l to l/100 km. It can also be defined other types of custom conversion such between different numeral system (bynary-octal-decimal-exadecimal). diff --git a/images/graph01.png b/images/graph01.png new file mode 100644 index 0000000..dc48e31 Binary files /dev/null and b/images/graph01.png differ diff --git a/images/graph02.png b/images/graph02.png new file mode 100644 index 0000000..62edf02 Binary files /dev/null and b/images/graph02.png differ