I have the following code:
\documentclass[tikz,border=5]{article}
\usepackage{tikz}
\usepackage{xfp}
\usepackage{amsmath}
\usetikzlibrary{math}
\usepackage{fp}
\begin{document}
\tikzmath{
real \x; int \i; real \s;
\s = 0;
for \i in {1,2,...,15}{
\s = \s + 2^\i;
\x{\i} = \s;
};
}
\vspace{3cm}
\foreach \i in {1,2,...,15}{
O valor da soma \i~ é desta sequência é \x{\i} \\
}
\end{document}
Why tikzmath
does not perform the calculations above of 2^14? How can I overcome this please? Any package, library to do calculation with bigger numbers?