1

I write the following command. After running for seconds (less than a minute), Mathematica breaks and nothing is displayed. Why?

a = Tuples[{1, I, -I}, {1, 20}]

Bests,

Thies Heidecke
  • 8,814
  • 34
  • 44
A. Mpi
  • 429
  • 2
  • 7
  • 6
    Please don't add [bugs] tag until the community has confirmed it. And, this is definitely not a bug, you're just out of memory: Table[ByteCount[Tuples[{1, I, -I}, i]]/1024^2., {i, 9, 11}] – xzczd May 31 '18 at 12:21
  • Thanks. How can I deal with that? – A. Mpi May 31 '18 at 12:27
  • 2
    That depends. Lazy list is a possible choice: https://mathematica.stackexchange.com/q/109598/1871 https://mathematica.stackexchange.com/q/9554/1871 – xzczd May 31 '18 at 12:31
  • 1
    Your question may be put on-hold as it seems to be off-topic, i.e it arises from a simple mistake (out of memory) and is unlikely to help any future visitors. Don't be discouraged by that cleaning-up policy. Your future good questions are welcome. Learn about common pitfalls here. – rhermans May 31 '18 at 12:46
  • You can still [edit] your question and make it about finding a way around the calculation you need. In that case the hold would be removed. – rhermans May 31 '18 at 12:48

0 Answers0