New Issue: Math module - should we deprecate some of the provided params due to compiler improvements?

19062, "lydia-duncan", "Math module - should we deprecate some of the provided params due to compiler improvements?", "2022-01-20T17:36:27Z"

The following params were added to the Math module early on so that the program would not recompute them at execution time, but the compiler has evolved to the point that we think such computations will be recognized and replaced at compile time, thus having no performance impact on a program:

  • half_pi
  • quarter_pi
  • recipr_pi
  • twice_recipr_pi

We think it is safe to deprecate these with the message that they should not have a performance impact. (Also, seems valuable to add a performance test to ensure that they don't start having a performance impact, assuming we don't have one already)