sqrt function

sqrt function - how to force only possitive solution - Mensajes

#1 Publicado: 26/9/2012 21:41:46
Gustavo Pacheco-Crosetti

Gustavo Pacheco-Crosetti

0 me gusta en 1 mensajes.

Grupo: 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 Publicado: 27/9/2012 0:47:15
Ruben Sidranski

Ruben Sidranski

17 me gusta en 465 mensajes.

Grupo: User

Needs to be programed sush that only positives are carried. I remember doing something similar in MathCAD several versions of MathCAD iterations ago.
  • Nuevos mensajes
  • Sin mensajes nuevos