From f3d2ca832f53991d578eb577d48bcf92909b466b Mon Sep 17 00:00:00 2001 From: Paul Aumann Date: Tue, 24 May 2022 16:26:47 +0000 Subject: [PATCH] Create README --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..435a627 --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# Useful functions + +The following mathematical functions are useful for smooth movements of two-dimensional objects. + +## Smooth transition from origin to point + +### Function + +```math +f(x) = \frac{-2k}{n^3} * x^3 + \frac{3k}{n^2} * x^2 +``` + +### Preview + +* [Preview](https://www.desmos.com/calculator/kxsbfgjnnz) + +Example with $`k=3`$ and $`n=2`$: + + + +### Description + +Graph starts at origin `(0,0)` and ends at `(n,k)` with a smooth transition between these points. + +## Slight variation of the first function + +### Function + +```math +f(x) = \frac{2k}{n^3} * x^3 - \frac{3k}{n^2} * x^2 + k +``` + +### Preview + +* [Preview](https://www.desmos.com/calculator/lsaoejeuwt) + +Example with $`k=2`$ and $`n=3`$: + + + +### Description + +Graph starts at `(0,k)` and ends at `(n,0)` with a smooth transition between these points.