Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I was just wondering how do you solve for a variable in MATHCAD. I have a function defined as
h(v,k,c):=(k/c)(v/c)^(k−1)exp(−(v/c)^(k))
This is a weibull distribution fucntion. k and c are already defined constants k = 1.5 and c = 15. I take the derivative
dh(v,k,c):=(d/dv)h(v,k,c)
I want to set it to zero and solve for v but when I set dh(v,k,c)=0 I get a 'variable is undefined error'. Anyone know how to set the equation equal to zero and solve for v?
Solved! Go to Solution.
In Mathcad 14:
Viktor
Thanks. that was very helpful.
I want to set it to zero and solve for v but when I set dh(v,k,c)=0 I get a 'variable is undefined error'. Anyone know how to set the equation equal to zero and solve for v?
You have to use the boolean equal sign (strg and +) and not the numeric evaluation equal sign.
You could either use the symbolic solve (as Viktor showed) or a numeric solve block.
Find both methods in attached file.