C++ has great features. And dangerous ones. Consider this piece of code: #include <iostream> using namespace std; #define sizeof(x) __LINE__*4 int main(void) { cout << sizeof(int) << endl; cout << sizeof(int) << endl; } This code is perfectly valid and prints 32 and 36. This error should be extremely hard […]
Daily archives: December 9, 2012
2 posts
Today I was asked to calculate the Franck-Condon factors (FC) for nitrogen using the harmonic approximation. As I won’t go into physical details, here’s a two-sentence description: FC factors give a hint on relative intensities of radiation from a molecule and vary from 0 (no radiation) to 1 (quite high […]