mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.12.0
This commit is contained in:
@@ -31,14 +31,14 @@ DESCRIPTION
|
||||
and param(param(0) is the last.
|
||||
|
||||
EXAMPLE
|
||||
> define f() {
|
||||
; define f() {
|
||||
>> local n, v = 0;
|
||||
>> for (n = 1; n <= param(0); n++)
|
||||
>> v += param(n)^2;
|
||||
>> return v;
|
||||
>> }
|
||||
|
||||
> print f(), f(1), f(1,2), f(1,2,3)
|
||||
; print f(), f(1), f(1,2), f(1,2,3)
|
||||
0 1 5 14
|
||||
|
||||
LIMITS
|
||||
@@ -66,8 +66,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
## @(#) $Revision: 29.2 $
|
||||
## @(#) $Id: param,v 29.2 2000/06/07 14:02:33 chongo Exp $
|
||||
## @(#) $Revision: 29.3 $
|
||||
## @(#) $Id: param,v 29.3 2006/05/07 07:25:46 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/param,v $
|
||||
##
|
||||
## Under source code control: 1996/03/12 23:10:01
|
||||
|
Reference in New Issue
Block a user