8 x1, x2, ... lists or values for which required operations are defined
10 return as determined by the operations on x1, x2, ...
13 Null values are ignored; ssq() returns the null value.
14 If no argument is a list, returns x1^2 + x2^2 + ...
15 If an argument = list(t1, t2, ...) it contributes ssq(t1, t2, ...)
18 ; print ssq(1,2,3), ssq(1+2i, 3-4i, 5 +6i)
21 ; mat A[2,2] = {1,2,3,4}; mat B[2,2] = {5,6,7,8}
22 ; print ssq(A, B, A + B)
24 mat [2,2] (4 elements, 4 nonzero):
33 ; ssq(1,2,3,4,5,6,7,8)
35 ; ssq(1,2, list(3,4,list(5,6)), list(), 7, 8)
39 The number of arguments is not to exceed 1024.
47 ## Copyright (C) 1999-2006 Landon Curt Noll
49 ## Calc is open software; you can redistribute it and/or modify it under
50 ## the terms of the version 2.1 of the GNU Lesser General Public License
51 ## as published by the Free Software Foundation.
53 ## Calc is distributed in the hope that it will be useful, but WITHOUT
54 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
55 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
56 ## Public License for more details.
58 ## A copy of version 2.1 of the GNU Lesser General Public License is
59 ## distributed with calc under the filename COPYING-LGPL. You should have
60 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
61 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
63 ## @(#) $Revision: 30.1 $
64 ## @(#) $Id: ssq,v 30.1 2007/03/16 11:10:42 chongo Exp $
65 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/ssq,v $
67 ## Under source code control: 1995/10/25 04:03:46
68 ## File existed as early as: 1995
70 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
71 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/