sqrt function

sqrt function - how to force only possitive solution - Poruke

#1 Objavljeno: 26. 9. 2012. 21:41:46
Gustavo Pacheco-Crosetti

Gustavo Pacheco-Crosetti

0 svidjanja u 1 postova.

Grupa: 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 Objavljeno: 27. 9. 2012. 00:47:15
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: User

Needs to be programed sush that only positives are carried. I remember doing something similar in MathCAD several versions of MathCAD iterations ago.
  • Novi postovi
  • Nema novih postova