Well, the question is pretty simple. I have a symbolic function like
var('U I')
Z = U / I
and now I want to create a dictionary, where the name of the function (as a string), here Z, maps to the corresponding function. It's simple to do by hand
{ 'Z' : Z }
but I want it to be created automatically. Using str(Z)
returns U/I
, so this isn't helpful. I went through some documentation, but did not find any method that returns the name of a function as string.
So how do I do it? Thanks in advance for answers.