sqrt function

sqrt function - how to force only possitive solution - Сообщения

#1 Опубликовано: 26.09.2012 21:41:46
Gustavo Pacheco-Crosetti

Gustavo Pacheco-Crosetti

0 сообщений из 1 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2012 00:47:15
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

Needs to be programed sush that only positives are carried. I remember doing something similar in MathCAD several versions of MathCAD iterations ago.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений