Skip to main content
1-Visitor
December 9, 2010
Question

Root function help

  • December 9, 2010
  • 2 replies
  • 3706 views

Hello,

I tried to solve the darcy friction factor formula symbolically, but mathcad couldn't do it. So now I am trying to solve it using the root function. However, the answer that I get is the same as my guess all the time. What am I doing wrong? I have attached the worksheet. The root problem is at the very bottom.

Thanks

D

2 replies

1-Visitor
December 9, 2010

I'm not sure your equations are correct.

Firstly, you define the function X(f) with a local definition and secondly you define X(f) again using the boolean equal operator.

Do you know the answer? Which equation is the root function meant to be applied to?

Mike

1-Visitor
December 9, 2010

you are right I goofed. I got it to work.

D

19-Tanzanite
December 9, 2010

You have X(f) defined as 1/sqrt(f), and then func(f) defined as X(f)-1/sqrt(f), so func(f) is zero for all values of f.

Your boolean version of the function X(f) below is not a fuction defintion, and has a unit mismatch.