cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

How do you solve for a variable?

ptc-4977231
1-Visitor

How do you solve for a variable?

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)^(k1)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?

ACCEPTED SOLUTION

Accepted Solutions

In Mathcad 14:

weibull.GIF

Viktor

Viktor

View solution in original post

3 REPLIES 3

In Mathcad 14:

weibull.GIF

Viktor

Viktor

Thanks. that was very helpful.

Werner_E
25-Diamond I
(To:ptc-4977231)

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.

Announcements

Top Tags