cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Unts in the runif-function

ValeryOchkov
24-Ruby IV

Unts in the runif-function

Is it a bug? The vector V must have an unit m!

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:ValeryOchkov)

It's a bug. It should either:

- accept units in its argument but then also return units in the result

- Not accept units in its arguments, and return none (as Mathcad 11 does).

Luc

View solution in original post

5 REPLIES 5

Default length is meters.  Numbers scale, but it seems to have stripped the units off.  A possible fix

Thanks, Fred.

But is it a bug! Prime must have units in all tools!

LucMeekes
23-Emerald III
(To:ValeryOchkov)

It's a bug. It should either:

- accept units in its argument but then also return units in the result

- Not accept units in its arguments, and return none (as Mathcad 11 does).

Luc

StuartBruff
23-Emerald II
(To:LucMeekes)

LucMeekes wrote:

It's a bug. It should either:

- accept units in its argument but then also return units in the result

- Not accept units in its arguments, and return none (as Mathcad 11 does).

I suppose a compromise is out of the question, then, Luc?

Stuart

LucMeekes
23-Emerald III
(To:StuartBruff)

Ah, I guess my description was missing something: in between "return units" there should have been a "those ".

No, your function apparently does this....

I think that replacing "return units" with "check them for consistency and return those units" would completely cover the rule, assuming that throwing an error in case units are inconsistent speaks for itself....

Top Tags