Skip to main content
23-Emerald V
October 8, 2024
Question

Returning the name of a function as a string?

  • October 8, 2024
  • 0 replies
  • 514 views

While porting and revamping my set (uniqueness) functions to Mathcad Prime 10 from Mathcad 15, I felt the need for speed.  Whilst I have set functions that will handle functions (to some degree), I wanted to use a uniqueness algorithm that relied on presorting an array.    However, Mathcad's built-in sort function won't sort functions.  After having a slight think about the problem, I wondered if I could use the format string function.  I can, sort of, in some cases, but not in general.

 

2024 10 08 G.png

 

Apart from possibly digging around in the worksheet API, does anybody know of a more reliable method of converting a function name to its equivalent string or how to sort on functions?

 

Stuart