Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I can get total QT if I define v, theta to any number.
But I want to get total QT that it include v, theta as "variable"
I search for method with my book, but I can't search for it.
so I posted this site to get advice.
could you help me?
What do you expect Q.T to be???
I just want to get 1 x 25 in case of v and get 1 x 35 in case of "theta" each.
But I can't get these values if I don't manually define any number.
You need to understand that, like EXCEL, Mathcad defaults to angles in radians.
Unlike EXCEL, you do not convert to degrees by 180/pi. Instead, you assign a unit of degree, and Mathcad converts automatically.
I've reworked your sheet.
okay thank you~
jinsuk Lee wrote:
I just want to get 1 x 25 in case of v and get 1 x 35 in case of "theta" each.
What do you mean by "in case of.."? You have v AND theta in your expression!
You have defined a variable Q.T and type an equal sign at the end. So what did you expect to see after that equal sign in that specific case, at that very moment?
Here again in more detail why your expression fails. I bleched when I opened your sheet because its such a mess but finally I at least scrolled down to look at your problem.
Basically its because you used ranges as arguments when you call Q. If you do so, you can evaluate the function call and you will get what looks like a 875 x 1 vector. But because you used ranges, it is NOT a vector and Mathcad will not let you assign it to a variable. The error message is meaningless and not helpful.
BTW, the calculation will need an "infnite" time to finish. Have you ever tried to evaluate Q(q,2,19,35,25)? You will need a fast machine and alot of time!
You can use your ranges as indices of a matrix to create a nice matrix (rows are thetas, columns are v's) but this only works with the integer ranges you provided and is a method which sure is not recommended and I strongly advise against it.
I won't go into detail how to achieve a decent result using vectors for various reasons. Mainly because it seems that you are somehow resistant to advice. You still use your strange "iterations" for ar() and ar'() which are at least not accurate and I fear they are even erroneaous as I guess you cannot assume that a=a'. I guess a solve block as shown will do a better job. And then you still use ranges and a lot of people have already told you that this is not recommended. Mike has posted a couple of times routines which create vectors on the fly as easy a creating ranges.
So all I want to do is to finish up by showing why your sheet fails. The two methods shown below are both not recommended, though.
Because of the enormous calculation time I chosed much smaller ranges (it still takes quite long) for demonstration purposes.
I guess that it will be difficult process becasue I failed several time to change it.
so it make me force to choose "variable".
Anyway, thank you. I will try to change "variable" to "vector".