Skip to main content
15 events
when toggle format what by license comment
Apr 27, 2012 at 15:11 comment added Dr. belisarius Ok. So +1 again.
Apr 27, 2012 at 10:44 comment added István Zachar Ah, ok, I missed the part on holding the rhs as well, sorry.
Apr 27, 2012 at 10:18 comment added kglr @IstvánZachar, you need to keep both the symbol and the rhs unevaluated (pls see belisarius's comment). For the form you suggest prntHF2[a] gives 2 (rhs is evaluated) when az=1.
Apr 27, 2012 at 9:44 comment added István Zachar @Kguler, can you please say some words on why to use OwnValues and not simply: Attributes[prntHF2] = {HoldAll, Listable}; prntHF2[sym_Symbol] := Row@{HoldForm@sym, " = ", sym}?
Apr 27, 2012 at 9:42 history edited kglr CC BY-SA 3.0
added 861 characters in body
Apr 27, 2012 at 5:55 comment added kglr @belisarius, me too:) One those things that I need to check docs every time I use it.
Apr 27, 2012 at 5:52 comment added Dr. belisarius mmm does not work if you set az=1
Apr 27, 2012 at 5:49 comment added kglr @Andy, thank you for the vote. Actually, I was just thinking about OwnValues the same way :)
Apr 27, 2012 at 5:49 comment added Dr. belisarius +1 This reminded me why I hate the controlstrings of StringForm[]
Apr 27, 2012 at 5:44 history edited kglr CC BY-SA 3.0
added 210 characters in body
Apr 27, 2012 at 5:44 comment added Andy Ross HoldForm is a very useful trick for this sort of thing. I'm surprised my own answer didn't include it :) +1
Apr 27, 2012 at 5:38 history edited kglr CC BY-SA 3.0
added 210 characters in body
Apr 27, 2012 at 5:34 history undeleted kglr
Apr 27, 2012 at 5:06 history deleted kglr
Apr 27, 2012 at 5:03 history answered kglr CC BY-SA 3.0