
now I started writing a simple code that would calculate a quantum wavefunction of a harmonic oscillator. It would work very quickly without units, but I want to do this using units, just to learn more using units :) And I've hit a brick wall, because I cannot get those lines to compile: quantity<reciprocal_area> lambda ( 2.0*m*E / (hbar*hbar) ); quantity<reciprocal_area> alpha ( m*omega/root<2>(hbar) ); double lambda_per_alpha ( lambda / alpha ); Even the first one has problems, to my surprise. Maybe I really should change my g++ version to a newer version? I will gladly try this if you think it makes sense. Would upgrading boost help? -- Janek Kozicki http://janek.kozicki.pl/ |