Skip to main content
1-Visitor
October 9, 2014
Solved

Find/Given using programming toolbar - it only works intermittently

  • October 9, 2014
  • 7 replies
  • 2647 views

I'm using code off of a project partner where he laid out a find/given function using the programming feature. In most instances it works, however when I change a variable value or add a variable to the equation, it goes "undefined" and will no longer give me an answer. This seems work well when we did the original calculation sheet, however, when I go and try to make revisions to it there are problems that always occur.

Even when I just copy and paste the parts to another worksheet it stops working.

I didn't want to redo his entire worksheet using another method to find the answers. Does anyone know why I would keep having problems with this method? Is there some syntax that is very discrete that I'm missing? If not solving through this method, do you have a recommendation?

Thanks,

Nick

Best answer by Werner_E

When using units you often run in problems with precision when evaluating a solve block. If you change CTOL higher to something like 0.01 your sheet works.

I wonder why don't you calculate F.V.d directly by multiplying A, N and sigma.

If you have to use a solveblock for a more compicated formula, you may just write F.V.d:=Find(F.V)

7 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
October 9, 2014

When using units you often run in problems with precision when evaluating a solve block. If you change CTOL higher to something like 0.01 your sheet works.

I wonder why don't you calculate F.V.d directly by multiplying A, N and sigma.

If you have to use a solveblock for a more compicated formula, you may just write F.V.d:=Find(F.V)

1-Visitor
October 9, 2014

Werner Exinger wrote:

When using units you often run in problems with precision when evaluating a solve block. If you change CTOL higher to something like 0.01 your sheet works.

You beat me to it

I did forget to mention CTOL though.

Werner_E
25-Diamond I
October 9, 2014

Mike Armstrong wrote:

Werner Exinger wrote:

When using units you often run in problems with precision when evaluating a solve block. If you change CTOL higher to something like 0.01 your sheet works.

You beat me to it

I did forget to mention CTOL though.

And I missed minerr(). 😉

Interestingly enough minerr() seems not to suffer from the problems Find does when using units.

1-Visitor
October 9, 2014

Have a look at the attached and see if it helps.