/**
* Replaces the two character ascii arrow version -> with ➔ used to declare the
* independent variable or declare a multivariate function "(n,x)->n*x" for
* instance becomes "(n,x)➔n*x" and replaces ... with …
*
* @param expression
*
* @return expression with with the described substitions made
*/
public static String replaceArrowsEllipsesAndSuperscriptAlphabeticalExponents(String expression)
{
return expression.replace("->", "➔").replace("...", "…").replace("ⁿ", "^n");
}