Skip to main content

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 details)

Uploaded Source

Built Distribution

graphs_for_economics-0.0.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file graphs_for_economics-0.0.5.tar.gz.

File metadata

  • Download URL: graphs_for_economics-0.0.5.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for graphs_for_economics-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4b4c23bf740df7b6065f81ec2e71e882d27a0ae19375ba18f8b661b92eb76b73
MD5 af5f54679fb0788d4c6d1123fd524e8f
BLAKE2b-256 3e256756f027f6b9d71315209052caa9e9441c0dfeebe25054e93a1c51988445

See more details on using hashes here.

File details

Details for the file graphs_for_economics-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for graphs_for_economics-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7e9b39e35949b6b8ba394c3361e6f09c2ef8eaafa2880c5abdd7fb49f14523
MD5 62c2357287dfca29eeb08348b9080a40
BLAKE2b-256 e1f709103ec37f59962df63554812c59b1d565f9f3d2219266a29a316156c728

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page