Bug in funtion f(x) release 97.5189

Bug in funtion f(x) release 97.5189 - f(x) generates Summation instead of function - Messages

#1 Posted: 5/5/2014 8:44:56 AM
Renaud Pelletier

Renaud Pelletier

0 likes in 2 posts.

Group: User

x=1..10

x=1
2
...

result
f(x)=385

which is the summation
it should show the array with values for each values of x
Bug Function .sm (3 KiB) downloaded 54 time(s).
#2 Posted: 5/5/2014 11:08:12 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

It is not a bug, it is the SMath feature. You've got the scalar product of two vectors.


[MATH=eng]x*x=385[/MATH]

If you want the elemental operation - you should use loops


[MATH=eng]for(i,range(1,length(x)),el(y,i):el(x,i)^2)[/MATH]


[MATH=eng]y=mat(1,4,9,16,25,36,49,64,81,100,10,1)[/MATH]

or Maxima plugin

[MATH=eng]Maxima(f(x))=mat(1,4,9,16,25,36,49,64,81,100,10,1)[/MATH]

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 5/7/2014 2:21:41 AM
Renaud Pelletier

Renaud Pelletier

0 likes in 2 posts.

Group: User

Thanks


  • New Posts New Posts
  • No New Posts No New Posts