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 omorr  
#1 Posted : 09 September 2014 17:36:01(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,

Maybe a minor issue, but I think this should be corrected. Result must be the unity matrix.



Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"

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

Offline mkraska  
#2 Posted : 09 September 2014 17:45:56(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Radovan, guess what the answer is...

Because A is defined symbolically.
Each use of A calls the definition and produces new random numbers.
It does not help to switch optimization to numeric, because that first generates the random number and then adds it to the zero matrix. Thus A becomes singular (all identical numbers.)

One might wish to define more precisely, what adding a random number to a matrix should give. First picking the number and adding it or first adding the call to all elements and then picking the numbers.

Edited by user 09 September 2014 17:49:12(UTC)  | Reason: Not specified

mkraska attached the following image(s):
random.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#3 Posted : 09 September 2014 18:01:44(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)
I think you agree with me that this simple example reveals (again) the peculiarities of symbolic-numeric SMath problem

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
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.