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 called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How do you solve for a variable?

ptc-4977231
1-Newbie

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?

1 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.

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.

Top Tags