Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Janusz  
#1 Posted : 10 December 2014 12:20:07(UTC)
Janusz

Rank: Newbie

Groups: Registered
Joined: 10/12/2014(UTC)
Posts: 6
Man
Poland

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
Janusz attached the following image(s):
Przechwytywanie.JPG

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mikekaganski  
#2 Posted : 10 December 2014 12:44:02(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
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

Edited by user 10 December 2014 12:45:58(UTC)  | Reason: Not specified

Best regards,
Mike Kaganski
Offline Janusz  
#3 Posted : 10 December 2014 13:00:52(UTC)
Janusz

Rank: Newbie

Groups: Registered
Joined: 10/12/2014(UTC)
Posts: 6
Man
Poland

Works perfectly! Thank You!
Janusz
Janusz attached the following image(s):
Przechwytywanie.JPG
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.