Skip to main content
14 events
when toggle format what by license comment
Mar 13 at 12:42 vote accept Meclassic
Sep 18, 2022 at 0:00 history tweeted twitter.com/StackMma/status/1571287961034973186
Sep 17, 2022 at 15:35 history edited Meclassic CC BY-SA 4.0
added 7 characters in body
Sep 17, 2022 at 14:46 comment added Szabolcs Thanks for the edit, upvoted.
Sep 17, 2022 at 14:35 comment added Meclassic @Szabolcs I got confused with what functional programming means. You are right, speed is what I am looking for. The question has been edited accordingly.
Sep 17, 2022 at 14:32 history edited Meclassic CC BY-SA 4.0
edited title; clarified question
Sep 17, 2022 at 13:49 history became hot network question
Sep 17, 2022 at 7:47 comment added Szabolcs Table is functional programming. If what you are looking for is to speed up this code, then please edit the question and make that the main topic.
Sep 17, 2022 at 4:23 answer added user293787 timeline score: 6
Sep 17, 2022 at 4:01 comment added Syed t1 = Chop@Table[{i, Sin[j*i]}, {j, 2}, {i, 0., 4 Pi, 4 Pi/100.}]; and t2 = Chop@ Outer[{#2, Sin[#1 #2]} & , {1, 2}, Range[0., 4 Pi, 4 Pi/100.]]; are almost identical in timing.
Sep 17, 2022 at 3:48 comment added Meclassic @Syed You are right and I do not know why but I was evaluating a Table with the iterators in the wrong order, which of course was not giving the desired result: Table[{i, Sin[j*i]}, {i, 0., 4 Pi, 4 Pi/100.},{j,2}]. Nevertheless, I have modified the title and updated my question accordingly.
Sep 17, 2022 at 3:46 history edited Meclassic CC BY-SA 4.0
deleted 5 characters in body; edited title
Sep 17, 2022 at 3:43 comment added Syed Table[{i, Sin[j^2 i]}, {j, 2}, {i, 0., Pi, Pi/100.}]; : Table can take multiple iterators.
Sep 17, 2022 at 3:32 history asked Meclassic CC BY-SA 4.0