In Mathematica there is a way to create struct-like data type: struct[myField]=value I want to return myStruct from a function: ...
When I use some function, at the end along with the output I get some NULLs returned that I don't understand the reason for and are highly undesirable. For example, when I define the reversal of list ...
Recently I had the need to redefine a certain symbol in my init.m so it would be automatically omitted from any lists it appears in. I decided to redefine it to an empty sequence, e.g. ...
I am trying to compile a little summation function. As far as I understand, because the built-in Sum function can also return ...
I need to use If but with only one option that is if "a" then do "b", else do nothing. So I wrote If[a,b] but the problem is ...