What's wrong with this while loop index definition? – mathematica.stackexchange.com

For[k = 1, k < 4, k++,
T = Table[i^2, {i, 0, k^2}];
f[k] = T;
]
In the above, I wish to define a function $f$ by $f(k)={0^2,...,k^2}$
for $k=1,2,3$, but the above doesn't work.
What is ...


Plot3D[Exp[x^2  y^2], {x, 2, 2}, {y, 2, 2}, ColorFunction >
(ColorData["VisibleSpectrum"][
Rescale[#3, {0, 1}, {380, 750}]] &), PlotLegends >
Automatic]
There is no legend ...

Development 

I want to maximize $poly$ under the constraints $g1,g2,g3=0$
poly = x1^4 + 2 x1^2 x2^2 + 2 x1^2 x3^2 + 2 x1^2 x4^2 + 0.2 x2^4 +
0.4 x2^2 x3^2 + 0.4 x2^2 x4^2 + 0.2 x3^4 + 0.4 x3^2 x4^2 + 0.2
...

Development 

I have some objects represented as follows:
Object[data, param]
data is a list of numbers, param is an integer.
Somewhere in my program, I need to do something like that:
pseed = N[seed, prec];
...

Development 

I know that Mathematica prefers a functional programming way but I
still have some problems for the following example.
Supposing we generate a Fibonacci sequence of 10^6 elements. NestList
or FoldList ...

Development 

The first post I got in "Mathematica Weekly Newsletter  Tuesday,
December 30, 2014" really attracted my attention as I was always
looking for a complete list of built in Mathematica functions with
...

Development 

For[k = 1, k < 4, k++,
T = Table[i^2, {i, 0, k^2}];
f[k] = T;
]
In the above, I wish to define a function $f$ by $f(k)={0^2,...,k^2}$
for $k=1,2,3$, but the above doesn't work.
What is ...

Development 


