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

 Ken 25/12/2015 9:47 am HOME » 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 ...

 Related to : What's wrong with this while loop index definition? – mathematica.stackexchange.com What's wrong with this while loop index definition? – mathematica.stackexchange.com 25/12/2015 9:47 am by Ken in 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 ... TAGS: What wrong with this while loop How to get short definition of all built in Mathematica Functions? – mathematica.stackexchange.com 31/12/2014 10:05 am by allisolm in 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 ... TAGS: short definition built Mathematica Functions mathematica Wrong with VisibleSpectrum – mathematica.stackexchange.com 24/11/2014 10:05 am by gondalez in Development 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 ... TAGS: Wrong with VisibleSpectrum mathematica stackexchange Changing the definition of N: unexpected \$RecursionLimit::reclim error – mathematica.stackexchange.com 28/11/2014 7:05 pm by bps in 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]; ... TAGS: Changing definition unexpected RecursionLimit reclim error For loop catastrophe – mathematica.stackexchange.com 30/11/2014 7:05 pm by Stuka in 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 ... TAGS: loop catastrophe mathematica stackexchange Maximize simple Polynom: Wrong answer – mathematica.stackexchange.com 24/11/2014 10:05 pm by Granville Barnett in 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 ... TAGS: Maximize simple Polynom Wrong answer mathematica Is it possible to "pretty print" my input integral in Mathematica like Wolfram|Alpha does? – mathematica.stackexchange.com 1/12/2014 1:06 am by dyarborough in Development With Wolfram|Alpha, if I enter: Integrate[r^3, {t, 0, 2Pi}, {r, 0, 2}, {z, r^2, 4}] Wolfram|Alpha will pretty print my input like so: Which is very readable, and I can easily check to make sure ... TAGS: possible pretty print input integral Mathematica Buying a new computer (specifically for Mathematica) – mathematica.stackexchange.com 20/12/2014 10:05 am by James Dio in Development My current computer is a MacBook Air, the mid-2011 version: 4 GB RAM, 1.7 GHz Intel dual core. It runs Mathematica 9 smoothly, but a bit too slowly for my taste. I use Mathematica almost exclusively ... TAGS: Buying computer specifically Mathematica mathematica stackexchange Automatically adjust Russia on the map (Mathematica 10.0) – mathematica.stackexchange.com 22/11/2015 4:02 pm by asp.net in Development Bug introduced in 10.0.0 and fixed in 10.1 I'm using Mathematica 10.0 on Windows 10. If I take a map of any country (even continent), it automatically adjusts the size of the map. ... TAGS: Automatically adjust Russia Mathematica mathematica stackexchange How would I return a random Mathematica command? – mathematica.stackexchange.com 24/12/2014 10:05 pm by smbrant in Development I'm doing some metaprogramming. How would I make a Mathematica function that returns a random Mathematica command? Is there a list of command names that I could use RandomChoice on? I'm looking for ... TAGS: would return random Mathematica command mathematica