Bug in funtion f(x) release 97.5189

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

#1 Pubblicato: 05/05/2014 08:44:56
Renaud Pelletier

Renaud Pelletier

0 apprezzamenti in 2 post.

Gruppo: 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) scaricato 1388 volta(e).
#2 Pubblicato: 05/05/2014 11:08:12
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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 Pubblicato: 07/05/2014 02:21:41
Renaud Pelletier

Renaud Pelletier

0 apprezzamenti in 2 post.

Gruppo: User

Thanks


  • Nuovi post
  • Nessun nuovo post