Giter Site home page Giter Site logo

laith-alayassa / economics-profit-max-solver Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 857 KB

A Python/Flask website that solves micro-economics profit maximization problems

Home Page: https://leoayasa.pythonanywhere.com/

Python 39.38% CSS 44.04% HTML 16.47% Procfile 0.12%
economics flask python

economics-profit-max-solver's Introduction

Micro-economics problem solver

Profit Maximizer


Find and use the website here ๐Ÿ‘ˆ



ECON SOVLER gif

I found myself solving similar equations multiple times during my microeconomics course, solving the problems required taking derivatives and maximizing functions. A high result accuracy was required as well, which made using a simple calculator or the phone insufficient. Double-checking the work was a time-intensive and error-prone process.

I decided to write this project so that I can quickly find a solution and easily check my work, and for the fun of python. This program turned solving a problem that took around 10 minutes into a matter of a second with no errors.

So far, I have learned and used the SymPy library which has been extremely useful at solving equations and really great when dealing with unknown variables as this library allows the user to define an unknown variable (as a symbol) and manipulate and use it in its unknown form until a solution for it is found. An example of this is when needing to equate two functions containg the variable Q, which was made possible by the use of unknown variables symbols:

Q = symbols("Q")

max Profit = MR - MC = 0
max Profit = 100 - (2*Q + 3) = 0
max Profit = 100 = 2*Q + 3

Q could be: 97/2 units

Things I Learned:

  1. Creating a webiste with FLASK library
  2. Deploying a flask website (using pythonanywhere)
  3. Using virtual enviornemts and the terminal
  4. Using the numpy library, especially using variables with no defined value and operating on them in their symbolic form
  5. Using Figma, HTML, CSS to design the website as this was my first webiste

screencapture-leoayasa-pythonanywhere-solve-2022-06-03-15_03_40

economics-profit-max-solver's People

Contributors

laith-alayassa avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.