Question: For this problem you will need to write a C program to generate a data file and write a GNUPlot script to generate the graph.

For this problem you will need to write a C program to generate a data file and write a
GNUPlot script to generate the graph.
According to Planck's law of black-body radiation, the spectral energy density R as a
function of wavelength (in metres) and temperature T(in degrees Kelvin) is given by:
R=2c2h51ehcKT-1
where c=3108ms is the speed of light, h=6.62610-34J-s is the Planck constant, and
k=1.3810-23JK is the Boltzmann constant. Make a plot (example shown below) that
contains plots of R as a function of for values between 0.1 and 3m for three
temperatures T=3000K,T=4000K, and T=5000K. Show everything on the same
figure. Use different colours and/or line styles for the three lines, label the axes and add a
legend (key).
 For this problem you will need to write a C program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!