symengine.py
symengine.py copied to clipboard
'FunctionSymbol' object has no attribute 'name'
The following code results in a error:
from symengine import symbols, Function
x = symbols('x')
f = Function('f')
print(f(x).name)
Replacing symengine with sympy gives the desired result:
Some useful information:
Is there another way of retrieving the function name from a expression such f(x) ? Thanks in advance.
There's the get_name
function. See https://github.com/symengine/symengine.py/blob/master/symengine/lib/symengine_wrapper.pyx#L2626
PRs welcome to add a name
property.