Bug in funtion f(x) release 97.5189

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

#1 Publicado: 5/5/2014 8:44:56
Renaud Pelletier

Renaud Pelletier

0 me gusta en 2 mensajes.

Grupo: 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) descargado 1383 vez(es).
#2 Publicado: 5/5/2014 11:08:12
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 7/5/2014 2:21:41
Renaud Pelletier

Renaud Pelletier

0 me gusta en 2 mensajes.

Grupo: User

Thanks


  • Nuevos mensajes
  • Sin mensajes nuevos