GithubHelp home page GithubHelp logo

guz-ali / dem-profits Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 21 KB

Finance Calculator. Find the best price and number of product to achieve maximum profits with your product through your formulas.

Java 100.00%
finance calculator

dem-profits's Introduction

Dem-Profits

Which function do you want to input? AR, MR, AC, MC (Able to compute up to x^20 complexity.)

If you have functions in, you can also look through them. SEARCH

Find the best amount of products, best price, maximum profit. MAX

You can quit by typing QUIT

<...>

Input the formulas of average revenue (AR), marginal revenue (MR), average cost (AC), marginal cost (MC). Now you can use these functions on MAX.

Find the best price and number of product to achieve maximum profits with your product through formulas. (use "max" for this) Then, select the formulas you want to use.

<...>

Uses equilibrium logic from microeconomics.

Logic of equilibrium: The maximum profit will be at the point where marginal cost and marginal revenue are equal to each other. Using this point (number of product) find revenue and cost, then find the profit.

Given the formulas of Average Price and Average Cost, program finds the Marginal Price and Marginal Cost. (MR and MC can be manually given, too.)

Since our maximum profit will be at MR=MC, turn this into a function. MR-MC=0

Using NEWTON'S METHOD of Finding Roots, find the root. What we find here is the number of products. (our x number in the function)

We used NEWTON's METHOD to be able to compute very complex functions. (ex. y=3x^5+1400x^4-55x^3+200, note: this is not an actual formula)

Apply number of products (x) on AR and AC, and substract cost from revenue.

Finally, we found the maximum profit.

You now have the maximum profits => and the number of products and price to achieve that.

dem-profits's People

Contributors

guz-ali avatar

Watchers

James Cloos avatar  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.