Tag Info

New answers tagged

2

Primary fixes: Adding First to fidelPhase and adding t to Subscript[u, i, j][t]. Making an objective function obj that is not evaluated until a and b are numeric may or may not be important. I won't have time to check it out (I've lost track of the original optimizer). The following works and it's not crucial to be so precise in one's fixes. ...


8

Every expression in Mathematica is characterized by it's FullForm. So in your case particularly FullForm[Log[x*x]]===Log[Power[x,2]] and FullForm[2*Log[x]]===Times[2,Log[x]] These two, although equivalent from a Mathematical point of view (but only if x>0) they have different FullForm representations. So SameQ(===) checks if the expression trees are ...


3

In your code p_ simply means a pattern (Blank[]) that you want to name p. Normally this (giving it a name) is done because you want to do something with the matched pattern. The point here is that you are not testing for a subscripted variable that starts with p. You code is essentially equivalent to MemberQ[pars2, Subscript[\[Tau], _]] which is why you get ...


3

I don't know if I understand well, but if you want to check, with Mathematica on Unix, if a given file/directory is executable, you'll have to run a specific external unix command line and retrieve the result. Unix useful commands The following concerns UNIX systems but there are probably some equivalent commands for Windows. (Feel free to edit the post if ...



Top 50 recent answers are included