2 iroot - integer part of specified root
11 return nonnegative real
14 Return the greatest integer v for which v^n <= x.
17 ; print iroot(100,3), iroot(274,3), iroot(1,9), iroot(pi()^8,5)
24 NUMBER *qiroot(NUMBER *x, NUMBER* n)
29 ## Copyright (C) 1999 Landon Curt Noll
31 ## Calc is open software; you can redistribute it and/or modify it under
32 ## the terms of the version 2.1 of the GNU Lesser General Public License
33 ## as published by the Free Software Foundation.
35 ## Calc is distributed in the hope that it will be useful, but WITHOUT
36 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
37 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
38 ## Public License for more details.
40 ## A copy of version 2.1 of the GNU Lesser General Public License is
41 ## distributed with calc under the filename COPYING-LGPL. You should have
42 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
43 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45 ## @(#) $Revision: 30.1 $
46 ## @(#) $Id: iroot,v 30.1 2007/03/16 11:10:42 chongo Exp $
47 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/iroot,v $
49 ## Under source code control: 1995/10/25 04:03:45
50 ## File existed as early as: 1995
52 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
53 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/