My name is Uncle TJ, I am a professional software engineer with about 10 years of experience. I have degrees in economics, computer science, and computer engineering. The purpose of this blog is to share thoughts, ideas, and explanations of key ideas related to study at the collegiate level. I will focus on subject areas where I have taken multiple courses such as economics, computer science, statistics, physics, and calculus. I am not a perfect genius so there may be mistakes, please contact me with errors (and optionally corrections) if you find any.
In this blog, I will use quotes to define key terms for emphasis to improve understanding and provide an easy way to review relevant concepts as you read a tutorial post. Some examples below show the descriptions of the fields of study: computer science and economics, key focuses of this blog.
Computer Science is the study of computers, their hardware, and software
Economics is a social science that studies the production, distribution, and consumption of goods and services within an economy
Here is an example of a code block that will be used to show code relevant to the blog post.
def calculate_price_elasticity(initial_quantity, new_quantity, initial_price, new_price):
# Calculate percentage change in quantity and price
percent_change_quantity = (new_quantity - initial_quantity) / initial_quantity
percent_change_price = (new_price - initial_price) / initial_price
# Calculate price elasticity of demand
elasticity = percent_change_quantity / percent_change_price
return elasticity
# Example usage
initial_quantity = 100
new_quantity = 80
initial_price = 10
new_price = 12
elasticity = calculate_price_elasticity(initial_quantity, new_quantity, initial_price, new_price)
print(f"Price elasticity of demand: {elasticity:.2f}")
Welcome to my blog and I hope you find what you are looking for!