I want to have a proc, which returns an expression using an indexed symbol. The proc needs to basically generate constansts to use to build an expression, similar to how dsolve uses _Cn. But I do not want to use _Cn for this so not to confuse the expression with another one that was generated using _Cn already.
So I thought to use a local symbol say A. (I could have used _Zn also, but I think _Z is also used by Maple).
The symbol A is first declared local to the proc, and then the proc returns the expression using A[n]. For example A*x+A*x^2 etc... The number of A[n]'s is not known before hand, but should not be more than 10.
I want to make sure that A[n] returned is really part of the local A symbol and not different symbol to avoid clash with any global A[n]
When I do the following check
good. So Maple says that A is not global. But when I do
it also says false!
My question is: When making local A , will A and A also be local, or are they different symbols? Maplemint says nothing about it, so I assume A[n] is local also?
These local variables were used but never assigned a value: A
It did not say that A was never declared local. This tells me that A is local, because A is local. But then why did type(expr,`local`) say false?