# Basic Maxwell Speed Distribution Function

## Homework Statement ## Homework Equations ## The Attempt at a Solution

I DO NOT NEED HELP WRITING THE PROGRAM! I'm just trying to figure out the basics behind it. Since this is an integral I will be solving this problem by using riemann sums. Where I'm having the most trouble is in the actually computation.

These are my constants:
N=100000
m=28.02
T=300
k=1.38*10^(-23)

For example I can look at the first case, v=0 and realize that I will get a result of 0.

Now when a substitute in v=20 and try to solve, my calculator gets an error that says INF.

Does anyone know what I'm doing wrong here.

## Answers and Replies

SteamKing
Staff Emeritus
Science Advisor
Homework Helper
First, I found a typo. The problem states N = 10000 (N = 10^4). Your post indicates N = 100000 (10^5).

Second, always indicate the units for the various variables and constants you are using. It saves a lot of time and confusion.

What SteamKing said. You're clearly using the wrong units for the mass. ALWAYS write down the units. they are not optional.