This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Cálculo de probabilidad de obtener al menos 2 impares en 4 lanzamientos | |
* de un dado estándar. Implementado en Assembly ARMv8. | |
* Matemáticas: P = [C(4,2)*(3/6)^2*(3/6)^2 + C(4,3)*(3/6)^3*(3/6)^1 + C(4,4)*(3/6)^4] | |
* = 15/16 = 93.75% | |
* --------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Cálculo de probabilidad binomial para exactamente 3 caras en 5 lanzamientos | |
* Implementación ARMv8 con operaciones reales en ensamblador | |
* Matemáticas: C(5,3)*(0.5)^5 = 10/32 = 31.25% | |
* Registros: x0-x2 para direcciones, w0-w14 para valores y cálculos | |
* --------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Ordena tres números enteros ingresados por el usuario en orden descendente | |
* Implementación con comparaciones y swaps | |
* Demostración: [ASCIINEMA.ORG/XXXXXX] | |
* --------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Calcula la suma de factoriales X! + Y! + Z! con entrada de usuario | |
* Implementación completa con subrutinas documentadas | |
* Demostración: [ASCIINEMA.ORG/XXXXXX] | |
* --------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Calcula la media aritmética de 10 números dados | |
* Demostración: [ASCIINEMA.ORG/XXXXXX] | |
* --------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Calcula el promedio de 4 calificaciones (95, 68, 92, 88) | |
* Demostración: [ASCIINEMA.ORG/XXXXXX] | |
* --------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Determina si un número entero es divisible entre 2 y 5 | |
* Demostración: [ASCIINEMA.ORG/XXXXXX] | |
* --------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-09 | |
* Descripción: Conversión de kilogramos a libras (212 kg a lbs) | |
* Demostración: [ASCIINEMA.ORG/XXXXXX] | |
* --------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-10 | |
* Descripción: Cálculo de probabilidad de obtener al menos 2 cartas rojas | |
* al seleccionar 4 cartas de un mazo de 52 (26 rojas/26 negras) | |
* Matemáticas: Usa combinatoria para calcular casos favorables: | |
* [C(26,2)*C(26,2) + C(26,3)*C(26,1) + C(26,4)] / C(52,4) | |
* ≈ 69.63% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* --------------------------------------------------------------------------------- | |
* Lenguajes de Interfaz en TECNM Campus ITT | |
* Autor: Jorge Alejandro Martinez Lopez | |
* Fecha: 2025-04-10 | |
* Descripción: Cálculo completo en ensamblador de probabilidad de múltiplo de 3 | |
* en dado de 6 caras. Muestra "33.33%" exactamente. | |
* --------------------------------------------------------------------------------- | |
*/ |
NewerOlder