Ich versuche Maxwell-Boltzmann-Verteilung zu berechnen, aber dieser Code gibt 0,00000, was ist das Problem?Maxwell-Boltzmann-Verteilung berechnen
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
float e=2.718228183, pi=3.14159265, m=2.66*pow(10,-23), t, k=1.38*pow(10,-23), v, result;
scanf("%f %f", &t, &v);
result = sqrt(pow(m/(2*pi*k*t), 3)) * 4 * pi * pow(v,2) * pow(e, -(m * pow(v,2))/(2*k*t));
printf("%f", result);
}
Der Code gibt '0.000000' für * was * Eingabewerte? –
gibt jetzt nur 0 @SvenMarnach – user6200763
zum Beispiel 500 100 @WeatherVane – user6200763