Getting Naan error while integrating with multiple parameters
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am evaluating spectral radiance of a black body. It is giving me NaaN errors. The following is th
B =
h=6.63*(10^-34);
k=1.381*(10^-23);
c=3*(10^8);
T=6000;
fun = @(x) (2*h*(x.^3))./(c*c*((exp((h*x)./(k*T))-1)));
x=integral(fun,380*(10^-9),750*(10^-9));
0 个评论
回答(1 个)
VBBV
2023-3-16
编辑:VBBV
2023-3-16
h=6.63*(10^-34);
k=1.381*(10^-23);
c=3*(10^8);
T=6000;
fun = @(x) (2*h*(c.^2)).*(x.^(-5)).*(exp((h.*c)./(k*x*T))-1).^(-1);
x=integral(fun,380*(10^-9),750*(10^-9))
May be the equation you wrote is typed incorrectly. Check this link for planks law for black body/ solar radiation https://www.google.com/search?q=solar+irradiance+formula&prmd=isvn&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjQrZfhw9_9AhUEcGwGHd9ZAnAQ_AUoAXoECAIQAQ&biw=360&bih=676&dpr=2#imgrc=kK2Z1urXtXRX2M&lnspr=W10=
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!