Skip to content

Commit 12da3b4

Browse files
authored
Merge pull request #4 from kolosovpetro/MATH-94
MATH-94
2 parents cb263f4 + e9af0d3 commit 12da3b4

File tree

6 files changed

+36
-24
lines changed

6 files changed

+36
-24
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.3] - 2025-02-24
9+
10+
### Changed
11+
12+
- Update readme
13+
- Improve the flow
14+
- Update figure labels
15+
- Fix typos
16+
- Update keywords
17+
- Grammar
18+
819
## [1.0.2] - 2025-02-24
920

1021
### Changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
# An efficient method of spline approximation for power function
2-
3-
Let $P(m, X, N)$ be an $m$-degree polynomials in $X\in\mathbb{R}$
1+
Let $P(m, X, N)$ be an $m$-degree polynomial in $X\in\mathbb{R}$
42
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.
73

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\%$.
4+
Essentially, the polynomial $P(m, X, N)$ is a result of a rearrangement inside Faulhaber's formula
5+
in the context of Knuth's work entitled "Johann Faulhaber and sums of powers".
6+
7+
In this manuscript we discuss the approximation properties of polynomial $P(m,X,N)$.
118

12-
By increasing the value of $N$ the length of convergence interval with odd-power $X^{2m+1}$ increasing as well.
9+
In particular, the polynomial $P(m,X,N)$ approximates the odd power function $X^{2m+1}$ in a certain neighborhood
10+
of a fixed non-negative integer $N$ with a percentage error less than $1\%$.
1311

14-
Furthermore, this approximation technique is generalized for arbitrary non-negative exponent power function $X^j$
12+
By increasing the value of $N$ the length of convergence interval with odd-power $X^{2m+1}$ also increases.
13+
Furthermore, this approximation technique is generalized for arbitrary non-negative exponent $j$ of the power function $X^j$
1514
by using splines.
255 Bytes
Binary file not shown.

src/AnEfficientMethodOfSplineApproximation.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
\keywords{
4646
Approximation,
4747
Power function,
48-
Splines,
48+
Spline approximation,
4949
Polynomials,
5050
Polynomial identities,
5151
Binomial coefficients
@@ -71,7 +71,8 @@
7171
Bernoulli polynomials,
7272
Combinatorics,
7373
Approximation,
74-
Splines
74+
Splines,
75+
Spline approximation
7576
},
7677
pdfauthor={Petro Kolosov},
7778
pdfkeywords={
@@ -91,7 +92,8 @@
9192
Bernoulli polynomials,
9293
Combinatorics,
9394
Approximation,
94-
Splines
95+
Splines,
96+
Spline approximation
9597
}
9698
}
9799
\begin{document}

src/sections/04_use_cases.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Use case scenarios of the approximation technique we discuss have their own constraints and limitations.
1+
The approximation technique above has its own constraints and limitations.
22
For instance, approximation requirements should have precisely specified exponent $j$ in $X^j$ because
33
for each $j$ there is a matching polynomial $P(m,X,N)$.
44
Perfectly, there should be a set precompiled polynomials $P(m,X,N)$ matching precise exponent $j$ in $X^j$ over
5-
precisely defined approximation range with required error of approximation $E$ as a constraint.
5+
exactly defined approximation range with required error of approximation $E$ as a constraint.
66
Generally, the approximation of power function $X^j$ by $P(m,X,N)$ can be broken down into the following steps
77
\begin{enumerate}
88
\item Define the exponent $j$ in $X^j$
@@ -31,7 +31,7 @@
3131
\end{align*}
3232
Therefore, for each two consequential points $N=X, N=X+1$ the absolute difference is 1, making that range
3333
at least $1\%$ percentage error for $X^j \leq 100$.
34-
I have chosen the approximation range $10 \leq X \leq 15$ and $j=3$ intentionally to show the spline approximation with
34+
The approximation range $10 \leq X \leq 15$ and exponent $j=3$ are chosen intentionally to show the spline approximation with
3535
percentage error threshold less than $1\%$.
3636
Therefore, to approximate $X^3$ in the range $10 \leq X \leq 15$, we use the following spline function
3737
\begin{align}
@@ -51,22 +51,22 @@
5151
\includegraphics[width=1\textwidth]{sections/images/08_plots_of_cubes_power_with_p_2_10_15}
5252
~\caption{
5353
Approximation of cubes $X^3$ by splines~\eqref{eq:spline_approximation_of_cubes}.
54-
Convergence interval is $10 \leq X \leq 15$ with percentage error $E\leq 1\%$.
54+
Convergence interval is $10 \leq X \leq 15$ with percentage error $E < 1\%$.
5555
}
5656
\label{fig:08_plots_of_cubes_power_with_p_2_10_15}
5757
\end{figure}
5858
where the spline knots are integers in the range $10 \leq N \leq 14$.
5959

6060
The same principle applies for even exponent $j=4$ in $X^j$ with the same convergence interval $10 \leq X \leq 15$
61-
and approximation error under $1\%$ constraints
61+
and approximation error under $1\%$
6262
\begin{align}
6363
X^4 \approx
6464
\begin{cases}
6565
P(1,X,10) \cdot X = -2300X + 330X^2, & 10 \leq X < 11 \\
66-
P(1,X,10) \cdot X = -3025X + 396X^2, & 11 \leq X < 12 \\
67-
P(1,X,10) \cdot X = -3888X + 468X^2, & 12 \leq X < 13 \\
68-
P(1,X,10) \cdot X = -4901X + 546X^2, & 13 \leq X < 14 \\
69-
P(1,X,10) \cdot X = -6076X + 630X^2, & 14 \leq X \leq 15
66+
P(1,X,11) \cdot X = -3025X + 396X^2, & 11 \leq X < 12 \\
67+
P(1,X,12) \cdot X = -3888X + 468X^2, & 12 \leq X < 13 \\
68+
P(1,X,13) \cdot X = -4901X + 546X^2, & 13 \leq X < 14 \\
69+
P(1,X,14) \cdot X = -6076X + 630X^2, & 14 \leq X \leq 15
7070
\end{cases}
7171
\label{eq:spline_approximation_fourth_power}
7272
\end{align}
@@ -76,7 +76,7 @@
7676
\includegraphics[width=1\textwidth]{sections/images/09_plots_of_fourth_power_with_p_2_10_15_times_x}
7777
~\caption{
7878
Approximation of $X^4$ by splines~\eqref{eq:spline_approximation_fourth_power}.
79-
Convergence interval is $10 \leq X \leq 15$ with percentage error $E\leq 1\%$.
79+
Convergence interval is $10 \leq X \leq 15$ with percentage error $E < 1\%$.
8080
}
8181
\label{fig:09_plots_of_fourth_power_with_p_2_10_15_times_x}
8282
\end{figure}

src/sections/conclusions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
P(m,X, X+1) &= (X+1)^{2m+1} - 1
2525
\end{align*}
2626
This can be further optimized depending on the value of $N$ in $P(m,X,N)$ because the convergence interval
27-
with the power function $X^j$ increases as $N$ rises.
27+
with the power function $X^j$ increases as $N$ grows.

0 commit comments

Comments
 (0)