Skip to main content
15 events
when toggle format what by license comment
Jul 16, 2013 at 1:26 history edited Stefan CC BY-SA 3.0
added 422 characters in body
Jul 16, 2013 at 0:50 history edited Stefan CC BY-SA 3.0
added 9 characters in body
Jul 16, 2013 at 0:01 history edited Stefan CC BY-SA 3.0
added 101 characters in body
Jul 15, 2013 at 23:42 comment added Stefan @TomD...uff...yes you're right. that's much simpler and clean...thank you. didn't know that.
Jul 15, 2013 at 23:33 comment added user1066 Or, perhaps a bit simpler, With[{list = Thread[params -> vals]},(*fancy operation*){a, b, c, d} /. list]
Jul 15, 2013 at 15:53 comment added Stefan @mm.Jang i know exactly what you mean...fiddling around with replacements it is sometimes best to start with a fresh kernel...or do the replacements inside a With.
Jul 15, 2013 at 15:37 comment added mmjang @Stefan I don't really know what happened, can't reproduce this anymore. I believe I copied the code in a right way.
Jul 15, 2013 at 15:36 comment added Stefan @mm.Jang checked it and it works with 9...
Jul 15, 2013 at 15:30 comment added Stefan @mm.Jang ups...i need to check that...
Jul 15, 2013 at 15:29 comment added mmjang You second method doesn't work in my version 9. The output is a + 2 b + 3 c + 4 d.
Jul 15, 2013 at 15:20 history edited Stefan CC BY-SA 3.0
added 1 characters in body
Jul 15, 2013 at 15:10 history edited Stefan CC BY-SA 3.0
added 237 characters in body
Jul 15, 2013 at 15:08 comment added bobthechemist Nice workaround; I will have to see if this works for my project.
Jul 15, 2013 at 15:04 comment added mmjang I think the OP is trying to write a "macro" that expand at the first element of With. It's rather hard for me .
Jul 15, 2013 at 14:57 history answered Stefan CC BY-SA 3.0