Hot answers tagged

8

Plot[Evaluate[Prepend[y'[#] (x - #) + y[#] & /@ x0, y[x]]], {x, -10, 10}, PlotLegends -> "Expressions"]


5

I always struggle with clusters and I can't give you a full solution, but I'll share the setup code I use on our slurm cluster. Perhaps you can adapt it. It works even when you get a different number of cores on each node. I added some comments to it. This solution assumes that you set up things so that you can run arbitrary commands on any node using ssh ...


2

Maybe what you are looking for is LeafCount. TreeForm is also useful for visualizing expressions. TreeForm @ y


1

From the point of view of tensor analysis, a scalar has no dimensions at all. You can make your own function that reflects this: arrayDimensions[x_?ArrayQ] := Dimensions[x] arrayDimensions[x_] := {} arrayDimensions[{1, 2}] (* {2} *) arrayDimensions[a + b] (* {} *}


Only top voted, non community-wiki answers of a minimum length are eligible