Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi,
I am receiving 'This value must be a vector' error eventhough the expression is vector already. Please see the attached snippet.
Thanks.
Solved! Go to Solution.
Hi Yigit,
I think that the problem is caused by the square root function.
Complains that it must be a vector,
Using the vector-ise operator (<CTRL> -) (and also setting f = 10^12 ) gives
Also added into the file are simple examples of the square root failing to calculate
Regards
Andy
I used the Trace Error feature and it led to the offending variable. It is actually a nested array, not a vector.
Hi Yigit,
I'm not sure what you want to achieve. Maybe attachment will help you.
Hi Yigit,
I think that the problem is caused by the square root function.
Complains that it must be a vector,
Using the vector-ise operator (<CTRL> -) (and also setting f = 10^12 ) gives
Also added into the file are simple examples of the square root failing to calculate
Regards
Andy
I had figured it's the square root function but I couldn't figure out 'why' it causes the error. I had used the same function with the same notation without error in my previous sheets, this one threw this error. Weird behavior I suppose.
As you may see from the previous attachment: square root seems to handle single column vector, but single row & matrix forms cause it to throw an error.
This discrepancy should probably be caonsidered as a bug, even though it can be corrected by vectorisation.
Regards
Andy
A Westerman schrieb:
As you may see from the previous attachment: square root seems to handle single column vector, but single row & matrix forms cause it to throw an error.
This discrepancy should probably be caonsidered as a bug, even though it can be corrected by vectorisation.
This auto-vectorization of Mathcad when dealing with column vectors is also covered in this thread: http://communities.ptc.com/message/195025#195025
Not sure if I should call it a convenience or a discrepancy. I tend to the latter.