Skip to main content
1-Visitor
Jan 22, 2015 3:09 AM UTC
Solved

Error in solving equation

Hello everyone

I need to find the value of a variable (Dev) per iteration, assigning an initial value, but I get error and truth do not know why.

FIGURA.png

Hope you can help

Werner_E
Werner_EAnswer
25-Diamond I
Jan 22, 2015 3:52 AM UTC

You could do as I already wrote and solve for all three unknowns, but I thought it would be a better idea to turn Re and v.1 into functions of D.ev which they obviously are.

Now there are only three inequalities for D.ev left and not a single equations. So you have a range of valid values for D.ev and Find will give you the smallest one (3.069 in). If you chose different(higher) guess values you get different results.

In your second solve block there is a unit mismatch.

1.png

13 replies

Werner_E
25-Diamond I
Jan 22, 2015 3:16 AM UTC

Attach your file, not just a picture.

It looks to me that v.1 and Re are unknown, too, and so you will have to search for all three unknowns and provide guesses for all of them. But you only have two equations!??

Translate
BPP1-VisitorAuthor
1-Visitor
Jan 22, 2015 3:20 AM UTC

Sorry, This is the file

Translate
Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Jan 22, 2015 3:52 AM UTC

You could do as I already wrote and solve for all three unknowns, but I thought it would be a better idea to turn Re and v.1 into functions of D.ev which they obviously are.

Now there are only three inequalities for D.ev left and not a single equations. So you have a range of valid values for D.ev and Find will give you the smallest one (3.069 in). If you chose different(higher) guess values you get different results.

In your second solve block there is a unit mismatch.

1.png

Translate
BPP1-VisitorAuthor
1-Visitor
Jan 22, 2015 2:45 PM UTC

Thanks Werner. One last question, as I can do to calculate "Dev" for each value in the case of multiple input values.

FIGURA1.png

Thanks in advance

Translate
Werner_E
25-Diamond I
Jan 22, 2015 4:27 PM UTC

It may work if you vectorize ALL calculations dealing with those vectors.

The other (and in my opinion better) way is to make v1, Re functions of Q, p1, etc and turn the solve block into a function of all those variables you like to change. Then call that function with your vectors as arguments.

Translate
BPP1-VisitorAuthor
1-Visitor
Jan 22, 2015 4:54 PM UTC

Vectorized functions not work, but the second way, worked perfectly.

Again, many thanks werner

Translate
BPP1-VisitorAuthor
1-Visitor
Jan 26, 2015 10:33 PM UTC

Hello everyone

Like the startup problem, trying to solve an equation me an error occurs, I hope you can help me.

Attached worksheet with the problem

Translate
Werner_E
25-Diamond I
Jan 26, 2015 11:03 PM UTC

Right click on the error and chose "Trace Error" and then "First" to get more information why the solve block failed.

1.png

In your case you typed "e^S" instead of "e^S(P.1)".

Translate
BPP1-VisitorAuthor
1-Visitor
Jan 26, 2015 11:08 PM UTC

I did not know the tool you used (Trace error), thank you very much Werner

Translate