Sqrt Problems

Sqrt Problems - messge says cannot calculate - Messages

#1 Posted: 12/9/2019 2:36:21 PM
Kelvin Edge

Kelvin Edge

0 likes in 1 posts.

Group: 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 Posted: 12/9/2019 3:19:46 PM
sergio

sergio

115 likes in 329 posts.

Group: 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 Posted: 12/9/2019 9:24:11 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Simply like this.

VectorizeSQRT.PNG
  • New Posts New Posts
  • No New Posts No New Posts