Update core_math.c
heat mapping change in accordance with calculation fix