User Portlet User Portlet

Discussions
Say I have a function with one mandatory and two optional arguments, f[x_, y_ : 1, z_ : 2] := x^2 + y*z Then how can I make a function call which gives values to both `x` and `z`, but not to `y`, such that `y` takes its default value. In...
Hi! If I Plot[{Sin[x],Cos[x]},{x,0,2π}] then I get the sine plotted in the default blue, and the cosine in the default orange. The command key="one"; Switch[key,"one",{Sin[x],Cos[x]},"two",{-Sin[x],-Cos[x]}] gives...
Hi, say I have a table {a,b,c,d} How can I get rid of the outermost brackets here, so that I have and expression of the form a,b,c,d I would need this very often in order to construct a list of arguments, which a function...
Hi, I am using ListPointPlot3D a lot recently. The arguments seem to have been given in the pattern: ListPointPlot3D[{...,{xi,yj,zij},...}] Also, I use Interpolation[ ] to interpolate the data. And this command wants the arguments in the...
Hi, given that I defined 2 variables n=10; m=20; I would like to have a Plot with the Label saying "solution with 10 x 20 grid points" . What I tried so far is using Text[ ], e.g. PlotLabel -> Text[n "grid points"] produce the...
Hi there! I do like the fact that you can address an Output in mathematica, and use it in expressions. For a simple example, if my input In[1] is 2+2 obviously I get the output Out[1] 4 I can now address this in later calculations, e.g....
Hi there, ocasionally I would like to comment out whole sections, containing several execution groups, from a notebook. Or even better would be to make them un-executable while maintaining their layout. The usual commenting with (* ... *)...
Hi! I realized that Mathematica allows the very convenient notationf[{a,b,c}]to produce the output{f[a],f[b],f[c]}as long as f is a defined function. But I ran into a problem where this does not work as I expected: I...
Hi! I was woundering if there is a command (in the sense of a mathematica input line) to evaluate all initialisation cells? I would find this really handy. cheers!
Hi, since I am finding the notation `{...}[[i]] or {{...},...{...}}[[i,j]]`, etc, to address the elements of Tables very cumbersome, I am looking for an alternative. Isn't there a possibility to enter the indices in a 2-D math way, as a subscript?...