Skip to content

Commit

Permalink
Fixed crashes in the quadratic Diophantine calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
alpertron committed May 31, 2024
1 parent 096343c commit 6361eb6
Show file tree
Hide file tree
Showing 31 changed files with 608 additions and 562 deletions.
8 changes: 4 additions & 4 deletions CONTFRAC.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="es_ES">
<meta property="og:description" content="This finds the continued fraction representation of rational numbers and quadratic irrationalities.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="manifest" href="contfrac.webmanifest">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/FRACCONT.HTM">
Expand Down Expand Up @@ -454,7 +454,7 @@ To enter numbers in hexadecimal format, you will need to precede them by the str
<h2>Source code</h2>
<p>You can download the source of the current program and the old continued fraction applet from <a href="https://github.com/alpertron/calculators">GitHub</a>. Notice that the source code is in C language and you need the <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> environment in order to generate JavaScript.</p>
</div>
<p>Written by Dario Alpern. Last updated 29 May 2024.</p>
<p>Written by Dario Alpern. Last updated 31 May 2024.</p>
</div>
<div id="helphelp"></div>
<div id="result" aria-live="polite"></div>
Expand Down Expand Up @@ -555,8 +555,8 @@ self.onmessage=function(b){k?(m(e.getInputStringPtr(),b.data[0]),e.doWork()):Web
"name": "Continued Fraction calculator",
"description": "Web application that finds the continued fraction representation of rational numbers and quadratic irrationalities.",
"image": ["https://www.alpertron.com.ar/contfrac.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions CUAD.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<meta property="og:locale" content="es_ES">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:description" content="Halla soluciones de ax^2 + bxy + cy^2 + dx + ey + f = 0.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/CUAD.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/QUAD.HTM">
Expand Down Expand Up @@ -322,7 +322,7 @@ button:disabled {color: #808080; background-color: #606060}
<h2>Código fuente</h2>
<p>Puedes bajar el código fuente de esta aplicación y del viejo applet de ecuaciones cuadráticas enteras desde <a href="https://github.com/alpertron/calculators">GitHub</a>. El código fuente está escrito en lenguaje C, por lo que es necesario <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> para generar JavaScript.</p>
</div>
<p>Escrito por Dario Alpern. Actualizado el 29 de mayo de 2024.</p>
<p>Escrito por Dario Alpern. Actualizado el 31 de mayo de 2024.</p>
</div>
<div id="result" aria-live="polite"></div>
<div id="footer">
Expand Down Expand Up @@ -418,8 +418,8 @@ button:disabled {color: #808080; background-color: #606060}
"name": "Resolución de ecuaciones cuadráticas en dos variables enteras",
"description": "Applicación Javascript que halla soluciones a ecuaciones cuadráticas enteras en dos variables.",
"image": ["https://www.alpertron.com.ar/cuad.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions CUADMOD.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="es_ES">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:description" content="Halla soluciones de la ecuación ax^2 + bx + c (mod n).">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/CUADMOD.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/QUADMOD.HTM">
Expand Down Expand Up @@ -295,7 +295,7 @@ button:disabled {color: #808080; background-color: #606060}
<h2>Código fuente</h2>
<p>Puedes bajar el código fuente de esta aplicación y del viejo applet de ecuaciones cuadráticas modulares desde <a href="https://github.com/alpertron/calculators">GitHub</a>. El código fuente está escrito en lenguaje C, por lo que es necesario <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> para generar JavaScript.</p>
</div>
<p>Escrito por Dario Alpern. Actualizado el 29 de mayo de 2024.</p>
<p>Escrito por Dario Alpern. Actualizado el 31 de mayo de 2024.</p>
</div>
<div id="result" aria-live="polite"></div>
<div id="footer">
Expand Down Expand Up @@ -389,8 +389,8 @@ button:disabled {color: #808080; background-color: #606060}
"name": "Resolución de ecuaciones cuadráticas modulares",
"description": "Applicación Javascript que halla soluciones a ecuaciones cuadráticas modulares.",
"image": ["https://www.alpertron.com.ar/quadmod.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions ConsoleApplication1.vcxproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommandArguments>40386086203521847842442038116961395908045388225743593887534051882867088867451422279926227658353369309602134937818767935489955578234805439581534625494985324713549730074875381338741302421655631135507379857269344735228428553001352597596691638801743636629329355013511352942721273050339170429834278987040381747960884411851433916486144170476008852597093750739127802680309124526032940172579802008470093339990359384991503503614458710698904103258512429909701566697333753540519871100983916899540657050034590964623607736274756781417764221105569531562147057912826327014822324375878810085123801163054580870423717464500275259286644790292287618742984022979008217487409481420224445378839089353872030913057691176817044086502550278535272750787424451118761716552849620868806555149154293300951201837849814408323169458959040706805689440625767829357238882085766112685307073105174963070427573702738362159098805163558648031695168433171835632969724871377060199849541218845177450315677176119955499412825504179204908105894697957170244421770769366517833025139901383316838896066622320648993411213811241118825043233830644947321875736006536117418021434702300430337</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>1 0 "-54325432563466" 0 0 "-1" 0</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerCommandArguments>43434334 43434323 4343413 7 8 -1 0</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>1 0 "-54325432563466" 0 0 "-1" 0</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<LocalDebuggerWorkingDirectory>$(ProjectDir)\x64\release</LocalDebuggerWorkingDirectory>
Expand Down
6 changes: 3 additions & 3 deletions DIST.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="es_ES">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:description" content="Dos tests de conocimiento de distancia entre ciudades.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/DIST.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/DISTANCE.HTM">
Expand Down Expand Up @@ -381,8 +381,8 @@ Me parece que ud. tendría que jugar a un juego de rol.</div>
"name": "Distancia entre ciudades",
"description": "Aplicación Web que incluye dos tests de conocimiento de distancia entre ciudades.",
"image": ["https://www.alpertron.com.ar/dist.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
6 changes: 3 additions & 3 deletions DISTANCE.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="es_ES">
<meta property="og:description" content="Two tests about distance between cities.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/DIST.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/DISTANCE.HTM">
Expand Down Expand Up @@ -381,8 +381,8 @@ You will perform better playing a role player video game.</div>
"name": "Distance between cities",
"description": "Web application which includes two tests about distance between cities.",
"image": ["https://www.alpertron.com.ar/distance.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions ECM.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="es_ES">
<meta property="og:description" content="This factors numbers using ECM and SIQS algorithms.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/ECMC.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/ECM.HTM">
Expand Down Expand Up @@ -1031,7 +1031,7 @@ The line to type is: <code>x=1;x=x+1;x&lt;10000;x;sumdigits(x, 10)==sumdigits(co
<p>You can download the source of the current program and the old factorization applet from <a href="https://github.com/alpertron/calculators">GitHub</a>. Notice that the source code is in C language and you need the <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> environment in order to generate JavaScript.</p>
</div>
</div>
<p>Written by Dario Alpern. Last updated 29 May 2024.</p>
<p>Written by Dario Alpern. Last updated 31 May 2024.</p>
</div>
<div id="helphelp"></div>
<div id="result" aria-live="polite"></div>
Expand Down Expand Up @@ -1218,8 +1218,8 @@ The line to type is: <code>x=1;x=x+1;x&lt;10000;x;sumdigits(x, 10)==sumdigits(co
"name": "Integer factorization calculator",
"description": "Web application that factors integers using ECM and SIQS algorithms.",
"image": ["https://www.alpertron.com.ar/ecm.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions ECMC.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="es_ES">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:description" content="Factoriza números enteros utilizando los algoritmos ECM y SIQS.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/ECMC.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/ECM.HTM">
Expand Down Expand Up @@ -1018,7 +1018,7 @@ La línea a escribir es: <code>x=1;x=x+1;x&lt;10000;x;sumdigits(x, 10)==sumdigit
<p>Puedes bajar el código fuente de esta aplicación y del viejo applet de factorización desde <a href="https://github.com/alpertron/calculators">GitHub</a>. El código fuente está escrito en lenguaje C, por lo que es necesario <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> para generar JavaScript.</p>
</div>
</div>
<p>Escrito por Dario Alpern. Actualizado el 29 de mayo de 2024.</p>
<p>Escrito por Dario Alpern. Actualizado el 31 de mayo de 2024.</p>
</div>
<div id="helphelp"></div>
<div id="result" aria-live="polite"></div>
Expand Down Expand Up @@ -1203,8 +1203,8 @@ La línea a escribir es: <code>x=1;x=x+1;x&lt;10000;x;sumdigits(x, 10)==sumdigit
"name": "Calculadora de factorización de números enteros",
"description": "Aplicación Web que factoriza números enteros utilizando los algoritmos ECM y SIQS.",
"image": ["https://www.alpertron.com.ar/ecmc.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions EULAM.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="es_ES">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:description" content="muestra una representación gráfica de los números primos.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/EULAM.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/ULAM.HTM">
Expand Down Expand Up @@ -217,7 +217,7 @@ Cualquier número en la línea diagonal menor que 41<sup>2</sup> = 1681 debe ser
Las diagonales cuyos números no se pueden dividir por primos pequeños tienen mayor cantidad de números primos, porque la mayoría de los números compuestos son divisibles por primos pequeños.</p>
<h2>Código fuente</h2>
<p>Puede bajar el código fuente de esta aplicación y del viejo applet de visualización de la espiral de Ulam desde <a href="https://github.com/alpertron/calculators">GitHub</a>. El código fuente está escrito en lenguaje C, por lo que es necesario <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> para generar JavaScript.</p>
<p>Escrito por Dario Alpern. Actualizado el 29 de mayo de 2024.</p>
<p>Escrito por Dario Alpern. Actualizado el 31 de mayo de 2024.</p>
</div>
</article></main>
<div id="cannotShow"><p>No se puede mostrar la espiral cuando el valor del centro es menor que el valor inicial.</p></div>
Expand All @@ -235,8 +235,8 @@ Las diagonales cuyos números no se pueden dividir por primos pequeños tienen m
"name": "Espiral de Ulam",
"description": "Aplicación Web que muestra una representación gráfica de los números primos.",
"image": ["https://www.alpertron.com.ar/eulam.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions FACTPOL.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:locale" content="es_ES">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:description" content="Funciona con polinomios enteros y módulo p^n.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/FACTPOL.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/POLFACT.HTM">
Expand Down Expand Up @@ -630,7 +630,7 @@ En caso contrario, solo se muestran funciones trigonométricas.</p>
<p>Puede bajar el código fuente del programa actual y del viejo applet de factorización de polinomios <a href="https://github.com/alpertron/calculators">GitHub</a>. El código fuente está escrito en lenguaje C, por lo que es necesario <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> para generar JavaScript.</p>
</div>
</div>
<p>Escrito por Dario Alpern. Actualizado el 29 de mayo de 2024.</p>
<p>Escrito por Dario Alpern. Actualizado el 31 de mayo de 2024.</p>
</div>
<div id="result" aria-live="polite" class="pad"></div>
<div id="footer">
Expand Down Expand Up @@ -711,8 +711,8 @@ En caso contrario, solo se muestran funciones trigonométricas.</p>
"description": "Aplicación Web que factoriza polinomios enteros y módulo una potencia de número primo.",
"operatingSystem": "Any",
"image": ["https://www.alpertron.com.ar/factpol.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"applicationCategory": "EducationalApplication",
"author": {
"@type": "Person",
Expand Down
8 changes: 4 additions & 4 deletions FCUBES.HTM
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="es_ES">
<meta property="og:description" content="This finds the decomposition of a number into cubes.">
<meta property="article:published_time" content="2024-05-29">
<meta property="article:published_time" content="2024-05-31">
<meta property="fb:app_id" content="1495228927625175">
<link rel="alternate" hreflang="es" href="https://www.alpertron.com.ar/SUMCUBOS.HTM">
<link rel="alternate" hreflang="en" href="https://www.alpertron.com.ar/FCUBES.HTM">
Expand Down Expand Up @@ -399,7 +399,7 @@ The line to type is: <code>x=3;x=n(x);c&lt;=100;x-1</code>.</p>
<h2>Source code</h2>
<p>You can download the source of the current program and the old sum of four cubes applet from <a href="https://github.com/alpertron/calculators">GitHub</a>. Notice that the source code is in C language and you need the <a href="https://emscripten.org/docs/getting_started/downloads.html">Emscripten</a> environment in order to generate JavaScript.</p>
</div>
<p>Written by Dario Alpern. Last updated 29 May 2024.</p>
<p>Written by Dario Alpern. Last updated 31 May 2024.</p>
</div>
<div id="helphelp"></div>
<div id="result" aria-live="polite"></div>
Expand Down Expand Up @@ -543,8 +543,8 @@ The line to type is: <code>x=3;x=n(x);c&lt;=100;x-1</code>.</p>
"name": "Sum of four cubes",
"description": "Web application that finds the decomposition of a number into cubes.",
"image": ["https://www.alpertron.com.ar/fcubes.png"],
"datePublished": "2024-05-29",
"dateModified": "2024-05-29",
"datePublished": "2024-05-31",
"dateModified": "2024-05-31",
"operatingSystem": "Any",
"applicationCategory": "EducationalApplication",
"author": {
Expand Down
Loading

0 comments on commit 6361eb6

Please sign in to comment.