add AI engines
[uweb.git] / zh / bc / index.html
blob714d6fbb193b41616be39f794b90bd7b6c8be616
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <link rel="stylesheet" href="../style.css#" type="text/css" />
8 <title>超级计算器(bc)</title>
9 <script type="text/javascript">
10 function findLang(){
11 let href = location.href;
12 for(let i=href.length-1;i>0;i--){
13 if('/'==href.charAt(i) && '/'==href.charAt(i-3))
14 return i;
16 return 0;
18 function nav2(page){
19 let i = findLang();
20 location.href = location.href.substring(0,i+1)+page;
22 function nav2Lang(lang){
23 let i = findLang();
24 let href = location.href;
25 location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
27 </script>
28 </head>
29 <body>
30 <header class='header'>
31 <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
33 <nav>
34 </nav>
35 </header>
36 <br />
38 <div class="container">
39 <h1 class="title">超级计算器(bc)
40 <br>
41 <span class="subtitle"></span>
42 </h1>
43 <ul class="tags">
45 </ul>
46 <p>Gnu bc计算器支持无限精度,可扩展函数库、常数库。</p>
47 <h3 id="安装bc-android11无需安装">安装bc (Android11+无需安装)</h3>
48 <ul>
49 <li>安装<a href="../searchurl/plugins.html">uweb定制Termux应用</a></li>
50 <li>Termux下运行以下命令:<br>
51 apt update<br>
52 apt upgrade<br>
53 apt install bc</li>
54 </ul>
55 <h3 id="使用书签调用计算器">使用书签调用计算器</h3>
56 <p>&quot;长按以下链接-&gt;命令-&gt;书签&quot;可保存链接为书签。书签菜单可至<a href="../urls/index.html#">特色服务网页</a>安装。<br>
57 <a href="c:bc -l">bc</a><br>
58 <a href="c:bc -l *.bc">全能bc</a></p>
59 <h3 id="浏览器地址栏作为超级计算器">浏览器地址栏作为超级计算器</h3>
60 <p>配置文件default.acmd如下:<br>
61 计算器:text/html:echo &quot;%s&quot;|bc -l -q</p>
62 <h3 id="更多bc扩展库">更多bc扩展库:</h3>
63 <p>https://github.com/susca/bc-extensions<br>
64 http://phodd.net/gnu-bc<br>
65 http://www.numbertheory.org/gnubc/gnubc.html</p>
66 <h3 id="使用扩展库以后defaultacmd配置如下">使用扩展库以后default.acmd配置如下:</h3>
67 <p>计算器:text/html:echo &quot;%s&quot;|bc -l -q extensions.bc scientific_constants.bc<br>
68 全能计算器:text/html:echo &quot;%s&quot;|bc -l -q *.bc</p>
70 </div>
71 <p>Last Modified: 2 April 2024<br>
72 add js function in README<br>
73 <pre></pre>
74 </p>
76 <script id='jsgiscus'
77 src='https://giscus.app/client.js'
78 data-repo="torappinfo/uweb"
79 data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
80 data-category="Announcements"
81 data-category-id="DIC_kwDOEgNLGc4CQjsh"
82 data-mapping="title"
83 data-strict="0"
84 data-reactions-enabled="1"
85 data-emit-metadata="0"
86 data-input-position="top"
87 data-theme="light"
88 data-lang="en"
89 data-loading="lazy"
90 crossorigin="anonymous" async>
91 </script>
93 <footer class="site-footer">
94 <div class="container">
95 &copy; 2018-2024 Richard H. Cao
96 </div>
97 </footer>
98 <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
101 </body>
102 </html>