I have a list of expressions as follows:
as=Table[a[k],{k,1,500}]
I would like to append _?NumericQ
to every element of this list and the result should look like this
{a[1]_?NumericQ,a[2]_?NumericQ,...,a[500]_?NumericQ}
Then I would like to transform this thing to
{a1_?NumericQ,a2_?NumericQ,...,a500_?NumericQ}
For this I need to be able to transform
as={a[1],...,a[500]}
to
bs={a1,...,a500}
This is needed when one needs to define functions with alot of variables such that hand typing them is not fiesable and symbolic computations are not desired.
Actually I only want to define a function with many variables as
obj[a1_?NumericQ,a2_?NumericQ,...,a500_?NumericQ]
That question is different than mine: there one has to type the variable still by hand.. I am looking for everything automized not only for $5$ elements.
obj[a1_?NumericQ,a2_?NumericQ........]
I want to defined this without writing $500$ terms over there... Is it possible to let the mathematica do this for me? $\endgroup$