Vector in lowest integers? Floor() function not helpful
Vector in lowest integers? Floor() function not helpful
(OP)
Good day,
Suppose I have a 2 rows x 1 col "matrix" named v, e.g.:
1
-5/6
Now I want this vector in lowest integers, i.e.:
6
-5
However, it seems to be difficult to achieve this. I tried to apply this to an ordinary scalar fraction in a solve block, like follows, in the hope to eventually get the factor n with which to multiply the vector's components:
Given
Floor(n*3/4)=n*3/4
n>0
Find(n) ->
I'd expect n=4 here, but: Mathcad complains, and says that the constraint is not valid. Would I omit the constraint, then it would find 0, which although correct is not of much use here.
Any suggestions, also completely different approaches?
Thanks in advance for your replies.
Regards,
//Herbert
PS: Using Mathcad 2001i Professional
Suppose I have a 2 rows x 1 col "matrix" named v, e.g.:
1
-5/6
Now I want this vector in lowest integers, i.e.:
6
-5
However, it seems to be difficult to achieve this. I tried to apply this to an ordinary scalar fraction in a solve block, like follows, in the hope to eventually get the factor n with which to multiply the vector's components:
Given
Floor(n*3/4)=n*3/4
n>0
Find(n) ->
I'd expect n=4 here, but: Mathcad complains, and says that the constraint is not valid. Would I omit the constraint, then it would find 0, which although correct is not of much use here.
Any suggestions, also completely different approaches?
Thanks in advance for your replies.
Regards,
//Herbert
PS: Using Mathcad 2001i Professional





RE: Vector in lowest integers? Floor() function not helpful
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Vector in lowest integers? Floor() function not helpful
v*1/(|max(v)|-|min(v)|)
More terms may be necessary in the denominator for a more general solution.
RE: Vector in lowest integers? Floor() function not helpful
Regards,
//Herbert