ricardocalleja / volumen__arepa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Volume of an arepa

The arepa is our gastronomical signature. Here is a way to calculate the volumen based on diameter and thickness.

from math import pi

height = float(input('Altura de la arepa cm: '))
diameter = float(input('Diametro de la arepa en cm: '))
volume = pi * ((diameter-height)/2) * ((diameter-height)/2) * height
print("El Volumen del cilindro ", volume, "cm3")


Rinput = diameter/2 #radio de la arepa
Rcil = Rinput - (height/2)
R_semi_torus = Rcil+4*(height/2)/(3*pi)
Volume = (float)(2 * pi * pi * R_semi_torus * (height/2) * (height/2));
print("Volumen de medio toroide: ", Volume/2);

Volumen_de_la_arepa = volume+Volume/2
print("El Volumen de la arepa es: ",Volumen_de_la_arepa, "cm3")

Prototipos para máquina de arepa

Prototipo_1

For this projecy we will constrain the minimun diameter to 2.5cm and maximun diameter to 20cm

About


Languages

Language:Jupyter Notebook 100.0%