SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
What's wrong with the "norme" function?
Rank: Advanced Member Groups: Registered
Joined: 22/09/2009(UTC) Posts: 34 Location: Utah State University, Logan, UT, USA Was thanked: 20 time(s) in 7 post(s)
|
I've tried using the "norme" function -- the function that calculates the Euclidean norm of a vector (or matrix) -- and can't get it to work. For example, when I try:
s:mat(1,2,3,4,5,5,1) norme(s)=
It won't calculate the Euclidean norm. Instead I get this strange message:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Not a big deal, since you can define your own "norme" function, e.g.,
NormE(F):line(nn:length(F),sqrt(sum((el(F,k)^2),k,1,nn)),2,1)
but, if it's listed in the "function" collection, it'd be nice to have it working properly.
September 1st, 2012
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
That is strange... The norme() does not work on the laptop with Win7 "error: Atempted to read or write protected memory..." - but it does works at the desktop with WinXP. s:mat(1,2,3,4,5,5,1)norme(s)=7.4162Open in SMath CloudRegards, Radovan Edited by user 03 September 2012 00:01:12(UTC)
| Reason: Not specified omorr attached the following image(s): |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2011(UTC) Posts: 318 Location: italy Was thanked: 109 time(s) in 93 post(s)
|
same error with Win7 desktop. sergio
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,980 Was thanked: 1120 time(s) in 718 post(s)
|
enorm() seems to work now (with 0.96.4884). The workaround from the customFunctions plugin is switched off here, as the dynamic assistant (invoked by F12) shows. Edited by user 17 May 2013 16:34:20(UTC)
| Reason: Not specified mkraska attached the following image(s): |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
Good, I'll disable the customFunctions workaround ancer: regards, w3b5urf3r |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
What's wrong with the "norme" function?
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.