Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Gilberto  
#1 Posted : 05 May 2014 15:44:56(UTC)
Gilberto

Rank: Newbie

Groups: Registered
Joined: 05/05/2014(UTC)
Posts: 2
Man
Canada
Location: Edmonton

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
File Attachment(s):
Bug Function .sm (4kb) downloaded 29 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 05 May 2014 18:08:12(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

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


x*x=385

If you want the elemental operation - you should use loops


for(i,range(1,length(x)),el(y,i):el(x,i)^2)


y=mat(1,4,9,16,25,36,49,64,81,100,10,1)

or Maxima plugin

Maxima(f(x))=mat(1,4,9,16,25,36,49,64,81,100,10,1)

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Gilberto  
#3 Posted : 07 May 2014 09:21:41(UTC)
Gilberto

Rank: Newbie

Groups: Registered
Joined: 05/05/2014(UTC)
Posts: 2
Man
Canada
Location: Edmonton

Thanks


Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.