cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

JMP Wish List

We want to hear your ideas for improving JMP. Share them here.
Choose Language Hide Translation Bar

Add "rss()" (root-sum-squared) function in JMP

Recommend adding "rss()" (root-sum-squared) function in JMP.  This is very useful for calculating the magnitude of vectors, hypotenuse of 2-d and 3-d triangles, etc.

 

Basically it would take the square-root of the sum of the squared terms.

1 Comment
Craige_Hales
Super User

@BHarris  Agree. The Distance function is close, flexible, but not easy to use or explain.

 

v = [3 4];
distance(v,v*0)^.5;

[5]

 

I've used this

 

sqrt(sum([3 4]^2))

5

 

which is not immediately obvious either. Length and Abs are already in use with an array argument. I think Magnitude might be a better name than Rss.

Magnitude([1 2 3, 4 5 6]) should return a 2 row by 1 col matrix.

Magnitude(1,2,3) should return a scalar.

Or Hypotenuse.