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-10-08 07:39:48 +00:00
|
|
|
|
<link rel="stylesheet" href="/uweb/style.css" type="text/css" />
|
2020-05-09 14:42:57 +00:00
|
|
|
|
<title>配置浏览器地址栏作为超级计算器(bc)</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header class='header'>
|
2020-10-08 07:39:48 +00:00
|
|
|
|
<a class="logo" href="/uweb">⟰</a> <a class="logo" href="/uweb/tags/">Tags</a>
|
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">
|
|
|
|
|
<h1 class="title">配置浏览器地址栏作为超级计算器(bc)
|
|
|
|
|
<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>
|
|
|
|
|
<p>使用Android端<a href="https://www.coolapk.com/apk/info.torapp.uweb">uweb浏览器</a>。<br>
|
|
|
|
|
Gnu bc计算器支持无限精度,可轻易扩展函数库、常数库。</p>
|
|
|
|
|
<h3 id="安装bc">安装bc</h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>安装[uweb定制Termux应用](https://www.wocloud.com.cn/webclient/share/sindex.action?id=1p00SB1kA2JpoBce2QHhbgmbxuq0yhuZAjUZYCZyVGCLivSf0dTfmw==) </li>
|
|
|
|
|
<li>Termux下运行以下命令:
|
|
|
|
|
apt update
|
|
|
|
|
apt upgrade
|
|
|
|
|
apt install bc</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<h3 id="配置文件sdcarduwebdefaultacmd如下">配置文件/sdcard/uweb/default.acmd如下:</h3>
|
|
|
|
|
<p>计算器:text/html:echo "%s"|bc -l -q</p>
|
|
|
|
|
<h3 id="更多bc扩展库">更多bc扩展库:</h3>
|
|
|
|
|
<p>扩展库可下载至/sdcard/uweb目录)<br>
|
|
|
|
|
<a href="https://github.com/susca/bc-extensions">https://github.com/susca/bc-extensions</a><br>
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|