Bug in funtion f(x) release 97.5189

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

#1 已发布: 2014/5/5 08:44:56
Renaud Pelletier

Renaud Pelletier

0个赞,共2个帖子。

组: 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.08 KiB)已下载 1398 次。
#2 已发布: 2014/5/5 11:08:12
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2014/5/7 02:21:41
Renaud Pelletier

Renaud Pelletier

0个赞,共2个帖子。

组: User

Thanks


  • 有新帖
  • 无新帖