Tag Archives: #WSQ13

WSQ13

WSQ13
here is my wsq, this page help me http://www.okomestudio.net/cs4bum/?p=76
and here is my wsqhttps://github.com/juanheuforico/WSQ/blob/master/WSQ13.py

WSQ13

WSQ13

WSQ13
here is my wsq, this page help me http://www.okomestudio.net/cs4bum/?p=76
and here is my wsqhttps://github.com/juanheuforico/WSQ/blob/master/WSQ13.py

WSQ13

WSQ13

WSQ13
here is my wsq, this page help me http://www.okomestudio.net/cs4bum/?p=76
and here is my wsqhttps://github.com/juanheuforico/WSQ/blob/master/WSQ13.py

WSQ13

#WSQ13

This wasn´t actually very difficult to write, the tricky part is how tu understand the babylonian method work, and didn´t got it by reading, i searched in google how to make it in c++ and i saw a lot of codes, this one is how i got to do it and it is shorter than most of them and pretty clear, that´s how i understand it.

Here´s my dropbox link cause my github doesn´t work on my laptop.

https://www.dropbox.com/s/tqk6q5lwy7mzicj/wsq13.cpp?dl=0

 

Babylonian Method


Babylonian Method

Babylonian Method


I had to research about the babylonian method, and about the function that would work with a square root, after that I checked some code of my classmates for detailes and it worked.

WSQ13 Babylonian Method

BM! Not that Difficult!

Here is my Github code: https://github.com/carolinarmtz/TC1017/blob/master/WSQ13.cpp

And the Screen Caption of the running program :

#WSQ13

Hi guys!!!  On this occasion i make a code that performs an ancient process of Babylonian to calculate the square root of a number according to the method they used , here I leave the link extplica you which is the mathematical porceso to perform this calculation and also you leave my code .

http://es.wikipedia.org/wiki/Matem%C3%A1tica_babil%C3%B3nica

https://github.com/Xochitl96/WSQ/blob/master/13.cpp

Babylonian #WSQ13 #TC1014

this is my code:

https://github.com/OscarEduardo/WSQ/blob/master/wsq13.py

Babylonian #WSQ13 #TC1014

WSQ13 BABYLONIAN METHOD

MÉTODO BABILÓNICO

Sabemos cómo utilizar raiz cuadrada ¿no?. En programación es fácil sacarla si utilizamos “import math” y ponemos el “math.sqrt()” para poder sacar el resultado. Pero, ¿cómo vamos a sacar raíz cuadrada sin el módulo? Hay que utilizar el Método Babilónico.
El Método Babilónico consiste en achicar un rectángulo hasta que todos sus lados miden iguales sin que el área sea modificada. De un rectángulo determinado se toma su ancho y su largo para sumarlos y luego dividirlos entre 2. El resultado que sea en esa división será el largo de otro rectángulo que todavía tiene la misma área. Hay que despejar el ancho como en las ecuaciones. De ahí se repite el  procedimiento una y otra vez hasta que el ancho y el largo midan lo mismo. 
Aquí el código con foto:
WSQ13 BABYLONIAN METHOD

Hay que declarar la variable “z” que sea igual a “n” y que “y” sea 0. Poner un loop que se rompa cuando “z” sea igual a “y”. Se empezará que “y” no sea igual a “z” por el valor de “n”, pero cuando “z” realizara el método babilónico, “y” tomará el valor de “z” anterior y se repetirá el procedimiento hasta que “y” sea igual a “z”. Eso es lo que yo entendí de acuerdo al código aquí, no sé ustedes. El output sería esto:

WSQ13 BABYLONIAN METHOD

Aquí el link en GitHub:
https://github.com/YeshuaAguilar02/PYTHON/blob/master/WSQ13

WSQ13 BABYLONIAN METHOD

MÉTODO BABILÓNICO

Sabemos cómo utilizar raiz cuadrada ¿no?. En programación es fácil sacarla si utilizamos “import math” y ponemos el “math.sqrt()” para poder sacar el resultado. Pero, ¿cómo vamos a sacar raíz cuadrada sin el módulo? Hay que utilizar el Método Babilónico.
El Método Babilónico consiste en achicar un rectángulo hasta que todos sus lados miden iguales sin que el área sea modificada. De un rectángulo determinado se toma su ancho y su largo para sumarlos y luego dividirlos entre 2. El resultado que sea en esa división será el largo de otro rectángulo que todavía tiene la misma área. Hay que despejar el ancho como en las ecuaciones. De ahí se repite el  procedimiento una y otra vez hasta que el ancho y el largo midan lo mismo. 
Aquí el código con foto:
WSQ13 BABYLONIAN METHOD

Hay que declarar la variable “z” que sea igual a “n” y que “y” sea 0. Poner un loop que se rompa cuando “z” sea igual a “y”. Se empezará que “y” no sea igual a “z” por el valor de “n”, pero cuando “z” realizara el método babilónico, “y” tomará el valor de “z” anterior y se repetirá el procedimiento hasta que “y” sea igual a “z”. Eso es lo que yo entendí de acuerdo al código aquí, no sé ustedes. El output sería esto:

WSQ13 BABYLONIAN METHOD

Aquí el link en GitHub:
https://github.com/YeshuaAguilar02/PYTHON/blob/master/WSQ13