2020-05-09 14:42:57 +00:00
|
|
|
|
<!doctype html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2020-04-29 08:37:43 +00:00
|
|
|
|
<meta charset="utf-8">
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2020-04-29 08:37:43 +00:00
|
|
|
|
|
2020-11-13 09:30:50 +00:00
|
|
|
|
<link rel="stylesheet" href="/uwebzh/style.css" type="text/css" />
|
2020-11-26 08:07:37 +00:00
|
|
|
|
<title>超级计算器(bc)</title>
|
2022-06-30 03:43:09 +00:00
|
|
|
|
<script type="text/javascript">
|
2022-07-12 02:24:02 +00:00
|
|
|
|
function findLang(){
|
2022-06-30 03:43:09 +00:00
|
|
|
|
let href = location.href;
|
|
|
|
|
for(let i=href.length-1;i>0;i--){
|
|
|
|
|
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
|
2022-07-12 02:24:02 +00:00
|
|
|
|
return i;
|
2022-06-30 03:43:09 +00:00
|
|
|
|
}
|
2022-07-12 02:24:02 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
function nav2(page){
|
|
|
|
|
let i = findLang();
|
|
|
|
|
location.href = location.href.substring(0,i+1)+page;
|
|
|
|
|
}
|
|
|
|
|
function nav2Lang(lang){
|
|
|
|
|
let i = findLang();
|
|
|
|
|
let href = location.href;
|
|
|
|
|
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
|
2022-06-30 03:43:09 +00:00
|
|
|
|
}
|
|
|
|
|
</script>
|
2020-05-09 14:42:57 +00:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header class='header'>
|
2022-06-30 03:43:09 +00:00
|
|
|
|
<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>
|
2022-07-12 02:24:02 +00:00
|
|
|
|
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<nav>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
2020-08-29 00:42:46 +00:00
|
|
|
|
<br />
|
2020-04-29 08:37:43 +00:00
|
|
|
|
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<div class="container">
|
2020-11-26 08:07:37 +00:00
|
|
|
|
<h1 class="title">超级计算器(bc)
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<br>
|
|
|
|
|
<span class="subtitle"></span>
|
|
|
|
|
</h1>
|
|
|
|
|
<ul class="tags">
|
2020-04-29 08:37:43 +00:00
|
|
|
|
|
2020-05-09 14:42:57 +00:00
|
|
|
|
</ul>
|
2020-11-26 08:07:37 +00:00
|
|
|
|
<p>使用<a href="https://www.coolapk.com/apk/info.torapp.uweb">uweb浏览器</a>。<br>
|
2022-02-10 09:20:09 +00:00
|
|
|
|
Gnu bc计算器支持无限精度,可扩展函数库、常数库。</p>
|
|
|
|
|
<h3 id="安装bc-android11无需安装">安装bc (Android11+无需安装)</h3>
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<ul>
|
2020-10-11 00:18:45 +00:00
|
|
|
|
<li>安装<a href="../searchurl/plugins.html">uweb定制Termux应用</a></li>
|
|
|
|
|
<li>Termux下运行以下命令:<br>
|
|
|
|
|
apt update<br>
|
|
|
|
|
apt upgrade<br>
|
2020-05-09 14:42:57 +00:00
|
|
|
|
apt install bc</li>
|
|
|
|
|
</ul>
|
2020-11-26 08:07:37 +00:00
|
|
|
|
<h3 id="使用书签调用计算器">使用书签调用计算器</h3>
|
|
|
|
|
<p>"长按以下链接->命令->书签"可保存链接为书签。书签菜单可至<a href="../searchurl/urls.html">特色服务网页</a>安装。<br>
|
|
|
|
|
<a href="c:bc -l">bc</a><br>
|
|
|
|
|
<a href="c:bc -l *.bc">全能bc</a></p>
|
|
|
|
|
<h3 id="浏览器地址栏作为超级计算器">浏览器地址栏作为超级计算器</h3>
|
2022-07-09 00:45:17 +00:00
|
|
|
|
<p>配置文件default.acmd如下:<br>
|
2020-11-26 08:07:37 +00:00
|
|
|
|
计算器:text/html:echo "%s"|bc -l -q</p>
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<h3 id="更多bc扩展库">更多bc扩展库:</h3>
|
2022-07-09 00:45:17 +00:00
|
|
|
|
<p><a href="https://github.com/susca/bc-extensions">https://github.com/susca/bc-extensions</a><br>
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<a href="http://phodd.net/gnu-bc">http://phodd.net/gnu-bc</a><br>
|
|
|
|
|
<a href="http://www.numbertheory.org/gnubc/gnubc.html">http://www.numbertheory.org/gnubc/gnubc.html</a></p>
|
|
|
|
|
<h3 id="使用扩展库以后defaultacmd配置如下">使用扩展库以后default.acmd配置如下:</h3>
|
2022-02-10 09:20:09 +00:00
|
|
|
|
<p>计算器:text/html:echo "%s"|bc -l -q extensions.bc scientific_constants.bc<br>
|
|
|
|
|
全能计算器:text/html:echo "%s"|bc -l -q *.bc</p>
|
2020-04-29 08:37:43 +00:00
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-05-09 14:42:57 +00:00
|
|
|
|
</body>
|
2020-04-29 08:37:43 +00:00
|
|
|
|
</html>
|