Problem with units in "if" function

Problem with units in "if" function - Cant to gain the result - 消息

#1 已发布: 2014/12/10 06:20:07
Janusz

Janusz

0个赞,共6个帖子。

组: User

Hi everyone,
I tried resolve the problem with units in "if" function but I cant. The formula is:

The b value is not resolved and has no units.
What is wrong? What should I to do to fix it?

Janusz
Przechwytywanie.JPG
#2 已发布: 2014/12/10 06:44:02
Mike Kaganski

Mike Kaganski

184个赞,共434个帖子。

组: User

You compare b.0 (length, 2.55 inches) to unitless 0.25 (what? meters? picas? kilograms?). You should:
1. Compare unit-wise (if b.0<=0.25*'in)
2. Remove units in "else" clause to make unitless result (if you need it like that): 2.52*sqrt(b.0/'in)
or, alternatively
2a. Use units in first option (before "else" ): 1*'in, AND restore units in "else" clause": 2.52*sqrt(b.0/'in)*'in
С уважением, Михаил Каганский
#3 已发布: 2014/12/10 07:00:52
Janusz

Janusz

0个赞,共6个帖子。

组: User

Works perfectly! Thank You!
Janusz

Przechwytywanie.JPG
  • 有新帖
  • 无新帖