sqrt function

sqrt function - how to force only possitive solution - Messages

#1 Posted: 9/26/2012 9:41:46 PM
Gustavo Pacheco-Crosetti

Gustavo Pacheco-Crosetti

0 likes in 1 posts.

Group: User

In the last version I downloaded, the sqrt() function returns the positive and negative solutions in a vector array.
Can I force it to return only the positive value in in a scalar, without defining a user function or using a sub index?

I have to work with direction vectors, vectors length, and vectors normalizations, and it gets quite a mess with the positive and negative solutions.

I did define "mysqrt(x) = sqrt(x) sub 1", but it is not very elegant.

Thanks.

#2 Posted: 9/27/2012 12:47:15 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Needs to be programed sush that only positives are carried. I remember doing something similar in MathCAD several versions of MathCAD iterations ago.
  • New Posts New Posts
  • No New Posts No New Posts