Sqrt Problems

Sqrt Problems - messge says cannot calculate - Сообщения

#1 Опубликовано: 09.12.2019 14:36:21
Kelvin Edge

Kelvin Edge

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

Группа: User

Hi, I'm a new user of smath and have come across an issue when I try to calculate the sqrt for a range of values, I just get a message saying that smath is unable to calculate. Attached is an image of a simple sheet showing what I am trying to achieve, ideally I wouldn't have interim values for f listed root problem.PNG

Any help gratefully received.
#2 Опубликовано: 09.12.2019 15:19:46
sergio

sergio

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

Группа: User

If you want to use a function (in this case "sqrt" ) for each of the vector elements, you must use the SpecialFunction "vectorize". another possibility is to run a "for" loop.

sergio
#3 Опубликовано: 09.12.2019 21:24:11
Jean Giraud

Jean Giraud

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

Группа: User

Simply like this.

VectorizeSQRT.PNG
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений