I want to make a table with two columns:
The first column will consist of many(possibly hundreds) of polynomials in two variables.
The second column will be a function applied to all of the polynomials. For example, the product of each polynomial with another fixed polynomial.
What is the best way to do this?
$\endgroup$ 31 Answer
$\begingroup$Such a computation in trivial in Maple or Mathematica. Here it is in Maple:
n:= 1000:
fixed:= randpoly([x,y]):
polys:= 'randpoly([x,y])' $ n: polys:= < polys >:
Table:= < polys | expand~(fixed*~polys) >:This takes 0.275 seconds on my computer. Therefore, you should use some other criterion to decide between the programs.
$\endgroup$ 2