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 gurro  
#1 Posted : 01 September 2012 18:24:16(UTC)
gurro


Rank: Advanced Member

Groups: Registered
Joined: 22/09/2009(UTC)
Posts: 34
Man
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


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

Offline omorr  
#2 Posted : 02 September 2012 23:54:36(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)
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.4162

Open in SMath Cloud

Regards,
Radovan

Edited by user 03 September 2012 00:01:12(UTC)  | Reason: Not specified

omorr attached the following image(s):
norme.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline PompelmoTell  
#3 Posted : 03 September 2012 10:22:08(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 318
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
same error with Win7 desktop.
sergio
Offline mkraska  
#4 Posted : 17 May 2013 16:29:55(UTC)
mkraska


Rank: Advanced Member

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

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):
norme.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Davide Carpi  
#5 Posted : 17 May 2013 17:03:03(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Good, I'll disable the customFunctions workaround Good Clap Biggrinancer: Good


regards,

w3b5urf3r
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Users browsing this topic
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.