Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 189

How to convert a list of variable names into a list of formal symbols?

$
0
0

I have a lists of variable names that include greek letters.

names = {"a", "b", "μ", "Σ"}

I would like to construct a lists of formal symbols from these such the above list will return

{\[FormalA], \[FormalB], \[FormalMu], \[FormalCapitalSigma]}

Mathematica graphics

I have tried mapping Symbol with no luck.

Symbol["$"<> #] & /@ names
{$a, $b, $μ, $Σ]}

How do I get a list of formal symbols from a list of variable names.


Viewing all articles
Browse latest Browse all 189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>