Answered step by step
Verified Expert Solution
Question
1 Approved Answer
pls help! fortran. Purpose: The purpose of this assignment is to have you write a program that allows you to calculate a numerical result. This
pls help! fortran.
Purpose: The purpose of this assignment is to have you write a program that allows you to calculate a numerical result. This exercise will also illustrate some of the problems with floating point arithmetic in numeric calculations. Your goal: In the non-relativistic kinetic energy of a particle is given by the formula TNR=21mv2 where m is the mass of the particle and v is the magnitude of the velocity. In the relativistic case the kinetic energy is given by the formula TR=mC2(v1) where c is the speed of light and gamma is the Lorentz factor given by =1c2v21 Write a Fortran program that prompts the user to enter the mass and speed (the magnitude of the velocity) in MKS units and outputs the resulting relativistic and non-relativistic kinetic energies of the particle. In the header block of comments please note whether or not your two kinetic energies agree in the non-relativistic limit. If they do not then explain why. Hint: Think of a way in which you might minimize any numerical error. Note: Make sure that your submission conforms to the Instructions for Source Code Submission instructions and that you have followed all of the Good Programming Tips in the notesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started