Custom Notation question?

Good notations can be very useful - but I'm not sure that this particular one is needed.

Good notations can be very useful - but I'm not sure that this particular one is needed... That said, the Notation package makes this pretty easy. As there are many hidden boxes when you use the Notation palette, I'll use a screenshot: You can see the underlying NotationMake* downvalues construct by using the Action -> PrintNotationRules option. In4 in the screenshot generates NotationMakeExpression SubscriptBoxvals_, RowBox{vars_, "|", svars_}, StandardForm := MakeExpression RowBox{"restrict", "", RowBox{vars, ",", svars, ",", vals}, ""}, StandardForm NotationMakeBoxesSubscriptvals_, vars_ | svars_, StandardForm := SubscriptBoxMakeBoxesvals, StandardForm, RowBox{Parenthesizevars, StandardForm, Alternatives, "|", Parenthesizesvars, StandardForm, Alternatives}.

I found a link to it in one of the Tutorials, but it's not in my Palette's menu – Yaroslav Bulatov Nov 17 '10 at 1:19 Provided NotationAutoLoadNotationPalette == True` it should open automatically when you Need"Notation'". If it doesn't then you can open it from ToFileName{$InstallationDirectory, "AddOns", "Packages", "Notation", "LocalPalettes", "English"}, "" and/or install it from the Palette menu. – Simon Nov 17 '10 at 2:56.

With regard to 2: I would pass the rule list Threadvars -> vals instead of keeping track of names and values separately. One of my favorite Mathematica idioms is to use rule lists together with WithRules as defined below: This construct evaluates an expression in a With block where all the replacement symbols have been (recursively defined). This allow you to do stuff like WithRules{a -> 1, be -> 2 a + 1}, be and gets you quite far towards named arguments.

SetAttributesWithRules, HoldRest WithRulesrules_, expr_ := Module{notSet}, Quiet With{args = Reverserules /. Rulea_, b_ -> notSeta, b}, FoldWith{#2}, #1 &, expr, args /. NotSet -> Set, With::lvw Edit: The WithRules construct is based on these two usenet threads (thanks to Simon for digging them up): A version of With that binds variables sequentially Add syntax highlighting to own command.

It's similar usage to stackoverflow. Com/questions/4152194/… . IE, I sum f1(x1,x2)*f2(x2,x3) over x1,x2,x3 where fi's arguments are stored in argsfi – Yaroslav Bulatov Nov 16 '10 at 4:10 1 OK, so this probably isn't so helpful then.

Still, it is my favorite trick, so any excuse will do for posting it :) – Janus Nov 16 '10 at 4:36 It is a nice trick. I remember a similar method discussed in this mathgroup post. – Simon Nov 16 '10 at 5:51 Also this one (which is the actual discussion that I remember!) – Simon Nov 16 '10 at 6:00 @Simon: Yes, exactly!

Thanks for finding them (I gave it a quick try with no luck). Have added links to my answer for future reference. – Janus Nov 16 '10 at 11:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions