graphs for economics
Project description
graphs_for_economics
This file will become your README and also the index of your documentation.
Install
pip install graphs_for_economics
How to use
graph = Graph_free_market()
supply_function = " x**2"
demand_function = "1000 - x**2"
consumer_surplus = graph.get_consumer_surplus(supply_function, demand_function)
print("Consumer Surplus:", consumer_surplus)
producer_surplus = graph.get_producer_surplus(supply_function, demand_function)
print("Producer Surplus:", producer_surplus)
economic_surplus = graph.get_economic_surplus(supply_function, demand_function)
print("Economic Surplus:", economic_surplus)
Consumer Surplus: 7451
Producer Surplus: 18454
Economic Surplus: 25905
graph.market_graph(supply_function, demand_function,0, 40, 10, complete=True)
price = graph.get_price(supply_function, demand_function)
quantity = graph.get_quantity(supply_function, demand_function)
print(f"Price: {price}, Quantity: {quantity}")
Price: 500, Quantity: 22
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for graphs_for_economics-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d23076e6c2b0254f14d7ff948491d3ed4db64ceb6cc8e87b3116a2c872f80fe8 |
|
MD5 | c047a83d38815466f7c41a1bf2b0acfe |
|
BLAKE2b-256 | 3f2e75f6002ec54478a0a65e644ae7464b90cf002d1f6a0ffe6f3ed763f4b92c |
Close
Hashes for graphs_for_economics-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43f53e1aa1abd4b24a07b802be19a9eea34076d8fe485508403730597b50662 |
|
MD5 | d47e9800bbdefbc500b064c3a5633e97 |
|
BLAKE2b-256 | 1f376cd411786ba3de57f4b29349424c61aec7c4c2306ad2138ce4fac8d629f2 |