I am not sure just what is your question.

My understanding is that your question is not about the programing language itself but is about some of the concepts which you wish to program.

What is inertia? Basically it is the mass of an object which determins tha amount of acceleration which the object undergoes when a force is applied.

It is related to momentum, a quantity which is conserved (unchanged) during interactions.

What are the formulas which you have difficulty understanding?

My understanding is that your question is not about the programing language itself but is about some of the concepts which you wish to program.

What is inertia? Basically it is the mass of an object which determins tha amount of acceleration which the object undergoes when a force is applied.

It is related to momentum, a quantity which is conserved (unchanged) during interactions.

What are the formulas which you have difficulty understanding?