2 Nov
2024
2 Nov
'24
12:11 p.m.
Hi, trying to find the length of a vector by taking the square root of the scalar product, I get this (in ginsh):
v = [[a,b]]; [[a,b]] r = sqrt(v * transpose(v)); sqrt([[a,b]]*[[a],[b]]) evalm(r); matrix::pow(): don't know how to handle exponent
The reason is that the scalar product evaluates to a matrix with a single element, not to a numeric. Is that intended? Thanks, Jan Rheinländer