Tag Archives: #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

WSQ13

Babylonian Method #WSQ13

Here’s my code for WSQ13, this WSQ was pretty simple, all I had to do was some research about the Babylonian method so I could understand it and convert it into code.

https://github.com/OscarLpz95/TC1014/blob/master/WSQ13.py

Oscar Rircardo López López A01229116

wsq13

Click here for code

this program gives you the square root for Babylonian metoth

wsq13

.

I learned with help of this blog

wsq13

Click here for code

this program gives you the square root for Babylonian metoth

wsq13

.

I learned with help of this blog

wsq13

Click here for code

this program gives you the square root for Babylonian metoth

wsq13

.

I learned with help of this blog

#WSQ13 #TC1017

https://github.com/MitziHernandez/wsq/blob/master/wsq13

In this assignment you will write a function to calculate the square root of a number using the Babylonian method. You can search for that method, it will be easy to find.

WSQ13 – Babylonian Method

Hey everybody!!!

Today I wrote a programm which calculates the square root of a number using a computing method called BABYLONIAN. It’s very simple, and you can learn how it works on Wikipedia.

http://en.wikipedia.org/wiki/Methods_of_computing_square_roots

On my code, I put a cout line to see how is it working, but you can just delete it if you want. Enjoy it!

https://github.com/juanpsantana/WSQs/blob/master/WSQ13.cpp

WSQ12 – Greatest common Divisor

Hey everybody!

Here is the code of WSQ13, A Gratest Common Divisor programm. This is the first post after Spring Break vacations, so I will post a lots of things on this day. I hope you enjoy it.

Here is the link to my code:

https://github.com/juanpsantana/WSQs/blob/master/WSQ12.cpp

#WSQ13

Babylonian Method

Aquí lo principal era sacar la raíz cuadrada de un número por el método babylonian. Encontré ayuda en internet para saber cual era ese metodo, y además me base en programas anteriores para ver como podría hacer mi código.

Lo que hice fue una función que me calcule la raiz de un número, utilice un while y simplemente en el int main, solo llame a esa función que ya regresa el resultado.

Aquí está mi programa corriendo:

Aquí está mi código en Github: https://github.com/fernandoaguirrer/TC1017/blob/master/WSQ13.md