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
graphs_for_economics-0.0.5.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for graphs_for_economics-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b4c23bf740df7b6065f81ec2e71e882d27a0ae19375ba18f8b661b92eb76b73 |
|
MD5 | af5f54679fb0788d4c6d1123fd524e8f |
|
BLAKE2b-256 | 3e256756f027f6b9d71315209052caa9e9441c0dfeebe25054e93a1c51988445 |
Close
Hashes for graphs_for_economics-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c7e9b39e35949b6b8ba394c3361e6f09c2ef8eaafa2880c5abdd7fb49f14523 |
|
MD5 | 62c2357287dfca29eeb08348b9080a40 |
|
BLAKE2b-256 | e1f709103ec37f59962df63554812c59b1d565f9f3d2219266a29a316156c728 |