What's wrong with the "norme" function?

What's wrong with the "norme" function? - norme function gives strange error message and won't work - Poruke

#1 Objavljeno: 1. 9. 2012. 11:24:16
Gilberto E. Urroz

Gilberto E. Urroz

23 svidjanja u 36 postova.

Grupa: User

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


#2 Objavljeno: 2. 9. 2012. 16:54:36
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

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.


[MATH=eng]s:mat(1,2,3,4,5,5,1)[/MATH]

[MATH=eng]norme(s)=7.4162[/MATH]

[LIVE width=248 height=98]http://smath.info/live/?file=3913[/LIVE]

Regards,
Radovan
norme.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Objavljeno: 3. 9. 2012. 03:22:08
sergio

sergio

127 svidjanja u 342 postova.

Grupa: User

same error with Win7 desktop.
sergio
#4 Objavljeno: 17. 5. 2013. 09:29:55
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

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.
norme.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 Objavljeno: 17. 5. 2013. 10:03:03
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Good, I'll disable the customFunctions workaround


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • Novi postovi
  • Nema novih postova