fastcalc.html

来自「perl教程」· HTML 代码 · 共 111 行

HTML
111
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../../displayToc.js"></script>
<script language="JavaScript" src="../../../tocParas.js"></script>
<script language="JavaScript" src="../../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../../scineplex.css">
<title>Math::BigInt::FastCalc - Math::BigInt::Calc with some XS for more speed</title>
<link rel="stylesheet" href="../../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',3);</script>
<h1><a>Math::BigInt::FastCalc - Math::BigInt::Calc with some XS for more speed</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#storage">STORAGE</a></li>
	<li><a href="#methods">METHODS</a></li>
	<li><a href="#license">LICENSE</a></li>
	<li><a href="#authors">AUTHORS</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Math::BigInt::FastCalc - Math::BigInt::Calc with some XS for more speed</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<p>Provides support for big integer calculations. Not intended to be used by
other modules. Other modules which sport the same functions can also be used
to support Math::BigInt, like <a href="../../../Math/BigInt/GMP.html">the Math::BigInt::GMP manpage</a> or <a href="../../../Math/BigInt/Pari.html">the Math::BigInt::Pari manpage</a>.</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>In order to allow for multiple big integer libraries, Math::BigInt was
rewritten to use library modules for core math routines. Any module which
follows the same API as this can be used instead by using the following:</p>
<pre>
        <span class="keyword">use</span> <span class="variable">Math::BigInt</span> <span class="string">lib</span> <span class="operator">=&gt;</span> <span class="string">'libname'</span><span class="operator">;</span>
</pre>
<p>'libname' is either the long name ('Math::BigInt::Pari'), or only the short
version like 'Pari'. To use this library:</p>
<pre>
        <span class="keyword">use</span> <span class="variable">Math::BigInt</span> <span class="string">lib</span> <span class="operator">=&gt;</span> <span class="string">'FastCalc'</span><span class="operator">;</span>
</pre>
<p>Note that from <a href="../../../lib/Math/BigInt.html">the Math::BigInt manpage</a> v1.76 onwards, FastCalc will be loaded
automatically, if possible.</p>
<p>
</p>
<hr />
<h1><a name="storage">STORAGE</a></h1>
<p>FastCalc works exactly like Calc, in stores the numbers in decimal form,
chopped into parts.</p>
<p>
</p>
<hr />
<h1><a name="methods">METHODS</a></h1>
<p>The following functions are now implemented in FastCalc.xs:</p>
<pre>
        _is_odd         _is_even        _is_one         _is_zero
        _is_two         _is_ten
        _zero           _one            _two            _ten
        _acmp           _len            _num
        _inc            _dec
        __strip_zeros   _copy</pre>
<p>
</p>
<hr />
<h1><a name="license">LICENSE</a></h1>
<pre>

This program is free software; you may redistribute it and/or modify it under
the same terms as Perl itself.</pre>
<p>
</p>
<hr />
<h1><a name="authors">AUTHORS</a></h1>
<p>Original math code by Mark Biggar, rewritten by Tels <a href="http://bloodgate.com/">http://bloodgate.com/</a>
in late 2000.
Seperated from BigInt and shaped API with the help of John Peacock.
Fixed, sped-up and enhanced by Tels <a href="http://bloodgate.com">http://bloodgate.com</a> 2001-2003.
Further streamlining (api_version 1 etc) by Tels 2004-2005.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../../lib/Math/BigInt.html">the Math::BigInt manpage</a>, <a href="../../../lib/Math/BigFloat.html">the Math::BigFloat manpage</a>, <a href="../../../Math/BigInt/BitVect.html">the Math::BigInt::BitVect manpage</a>,
<a href="../../../Math/BigInt/GMP.html">the Math::BigInt::GMP manpage</a>, <a href="../../../lib/Math/BigInt/FastCalc.html">the Math::BigInt::FastCalc manpage</a> and <a href="../../../Math/BigInt/Pari.html">the Math::BigInt::Pari manpage</a>.</p>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?