I have defined a variable called y, this contains a huge equation, but when I look for the dimension of y it shows 3. How come a single expression has dimensions of 3? It is supposed to be 1 right?
y=39.25 ω^2 (1.00519 Subscript[a,4][1]^2+1.00102 Subscript[a,4][2]^2+2.19056 Subscript[a,4][1] Subscript[a,4][3]-1.07645 Subscript[a,4][2] Subscript[a,4][3]+1.5 Subscript[a,4][3]^2+0.55507 Subscript[a,4][1] Subscript[a,4][4]+1.54742 Subscript[a,4][2] Subscript[a,4][4]+1.5 Subscript[a,4][4]^2);;
Dimensions[y]
Dimensions
needs a full array as argument (see documentation) . If you apply it to a scalar surprising results likeDimension[a+b] (* 2*)
occur. $\endgroup${a +b}
$\endgroup$LeafCount
which gives the total number of indivisible subexpressions. In this case,78
$\endgroup$