convert tadpole equation indexing to C convention