Dear fellow C programmers, sorry to ask such a basic question to you, but what would be the equivalent of this:
val = dim == 0 ? 1 : S(dim) * pow(radius * 0.5, dim) / dim
in Python? I am wrapping some C code and I need to know what is going on in this line in order to compare with the Python results...