Skip to content

TemplateExpressionSpec don't use variables names and .sympy() doesn't work #916

Answered by MilesCranmer
Vahan-tech asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Vahan-tech,

This is correct and is the intended behavior. Template expressions print using #1 instead of "x1" because the specific arguments can change. For example your template could be f(x1) - f(x2). So the only consistent way to handle this is to print #1 to mean "first argument" rather than specific variable names.

Perhaps a workaround could be add by someone in the future.

.sympy() is not available with template expressions – this is intended. See #911 for the issue for this.

Cheers,
Miles

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Vahan-tech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants