|
1 | | -# GitHub LaTeX Template |
| 1 | +# An efficient method of spline approximation for power function |
2 | 2 |
|
3 | | -[](https://github.com/kolosovpetro/github-latex-template/actions/workflows/build.yml/badge.svg) |
4 | | -[](https://github.com/kolosovpetro/github-latex-template/actions/workflows/build-and-deploy.yml/badge.svg) |
| 3 | +Let $P(m, X, N)$ be an $m$-degree polynomials in $X\in\mathbb{R}$ |
| 4 | +having fixed non-negative integers $m$ and $N$. |
| 5 | +Essentially, the polynomial $P(m, X, N)$ is a result of rearrangement inside Faulhaber's formula |
| 6 | +in context of Knuth's work Johann Faulhaber and sums of powers. |
5 | 7 |
|
6 | | -LaTeX template for GitHub including general CI/CD actions and Mathematica templates. |
| 8 | +In this manuscript we discuss approximation properties of polynomial $P(m,X,N)$. |
| 9 | +In particular, the polynomial $P(m,X,N)$ approximates odd power function $X^{2m+1}$ in certain neighborhood |
| 10 | +of fixed non-negative integer $N$ with percentage error lesser than $1\%$. |
7 | 11 |
|
8 | | -- https://dev.azure.com/PetroKolosovProjects/github-latex-template |
| 12 | +By increasing the value of $N$ the length of convergence interval with odd-power $X^{2m+1}$ increasing as well. |
9 | 13 |
|
10 | | -## GitHub Actions used |
11 | | - |
12 | | -- https://github.com/actions/checkout |
13 | | -- https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/index.md |
14 | | -- https://github.com/xu-cheng/latex-action |
15 | | -- https://github.com/actions/upload-artifact |
16 | | - |
17 | | -## Build and run using PowerShell (Windows) |
18 | | - |
19 | | -- Install `MikTeX`: https://miktex.org/download |
20 | | -- Update `MikTeX` |
21 | | -- Install `SumatraPDF` viewer: https://www.sumatrapdfreader.org/download-free-pdf-viewer |
22 | | -- `Rename-Tex-Files.ps1` renames main LaTeX and BibTeX files to match the repository root directory name |
23 | | -- `Build-Latex.ps1` |
24 | | - |
25 | | -## Build and run in Intellij IDEA (Windows) |
26 | | - |
27 | | -- Install `MikTeX`: https://miktex.org/download |
28 | | -- Update `MikTeX` |
29 | | -- Install `SumatraPDF` viewer: https://www.sumatrapdfreader.org/download-free-pdf-viewer |
30 | | -- Path to SumatraPDF: `C:\Program Files\SumatraPDF` |
31 | | -- Install `Intellij IDEA Ultimate`: https://www.jetbrains.com/idea/download/#section=windows |
32 | | -- Activate `Intellij IDEA Ultimate` |
33 | | -- Install `TeXiFy IDEA` plugin: https://plugins.jetbrains.com/plugin/9473-texify-idea |
34 | | -- Clone this repository locally: `https://github.com/kolosovpetro/github-latex-template.git` |
35 | | -- Open `github-latex-template` folder in `Intellij IDEA Ultimate` and configure as follows |
36 | | - - LaTeX Configuration |
37 | | -  |
38 | | - - BibTeX Configuration |
39 | | -  |
40 | | -- Configure Inverse Search in `Intellij IDEA` for SumatraPDF: `Tools -> LaTeX -> Configure Inverse Search` |
41 | | -- Compile document using `Shift + F10` |
42 | | - |
43 | | -## How to use Mathematica package |
44 | | - |
45 | | -- Open the package file `GithubLatexTemplateMathematicaPackage.m` in Wolfram Mathematica, I use version 13.0 |
46 | | -- Execute the package using `Shift+Enter` |
47 | | -- Open the notebook file `GithubLatexTemplateMathematicaNotebook.nb` |
48 | | -- Execute the line: `Needs["GithubLatexTemplateMathematicaPackage"]` |
49 | | -- Continue your work as desired |
50 | | - |
51 | | -## Configure CI / CD |
52 | | - |
53 | | -- Update root file name in `build-pdf.yml` and `build-and-deploy-pdf.yml` |
54 | | -- Set repository secrets |
55 | | - - `GH_ACCESS_TOKEN`: Generate GitHub Personal access token at |
56 | | - `Settings -> Developer Settings -> Personal access tokens -> Generate mew token` |
57 | | - |
58 | | -## Actions and their trigger policy |
59 | | - |
60 | | -- `build-pdf.yml` builds project using `TeXLive`. Triggered on `pull_request`, `push` to `develop` branch |
61 | | -- `build-and-deploy-pdf.yml` builds project using `TeXLive` and deploys to `GitHub Pages`. Triggered on `push` to `main` |
62 | | - branch |
63 | | - |
64 | | -## Template example |
65 | | - |
66 | | -Compiled document looks like as follows |
67 | | - |
68 | | -<p align="center"> |
69 | | - <img src="src/sections/images/template_example.png" alt="template_example"/> |
70 | | - <img src="src/sections/images/template_example2.png" alt="template_example"/> |
71 | | -</p> |
| 14 | +Furthermore, this approximation technique is generalized for arbitrary non-negative exponent power function $X^j$ |
| 15 | +by using splines. |
0 commit comments