Code Monkey home page Code Monkey logo

volumen__arepa's Introduction

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

volumen__arepa's People

Contributors

madacol avatar ricardocalleja avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

madacol

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.