mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
102 lines
3.4 KiB
HTML
102 lines
3.4 KiB
HTML
<!doctype html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
||
<link rel="stylesheet" href="../style.css#" type="text/css" />
|
||
<title>超级计算器(bc)</title>
|
||
<script type="text/javascript">
|
||
function findLang(){
|
||
let href = location.href;
|
||
for(let i=href.length-1;i>0;i--){
|
||
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
|
||
return i;
|
||
}
|
||
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);
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<header class='header'>
|
||
<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>
|
||
|
||
<nav>
|
||
</nav>
|
||
</header>
|
||
<br />
|
||
|
||
<div class="container">
|
||
<h1 class="title">超级计算器(bc)
|
||
<br>
|
||
<span class="subtitle"></span>
|
||
</h1>
|
||
<ul class="tags">
|
||
|
||
</ul>
|
||
<p>Gnu bc计算器支持无限精度,可扩展函数库、常数库。</p>
|
||
<h3 id="安装bc-android11无需安装">安装bc (Android11+无需安装)</h3>
|
||
<ul>
|
||
<li>安装<a href="../searchurl/plugins.html">uweb定制Termux应用</a></li>
|
||
<li>Termux下运行以下命令:<br>
|
||
apt update<br>
|
||
apt upgrade<br>
|
||
apt install bc</li>
|
||
</ul>
|
||
<h3 id="使用书签调用计算器">使用书签调用计算器</h3>
|
||
<p>"长按以下链接->命令->书签"可保存链接为书签。书签菜单可至<a href="../urls/index.html#">特色服务网页</a>安装。<br>
|
||
<a href="c:bc -l">bc</a><br>
|
||
<a href="c:bc -l *.bc">全能bc</a></p>
|
||
<h3 id="浏览器地址栏作为超级计算器">浏览器地址栏作为超级计算器</h3>
|
||
<p>配置文件default.acmd如下:<br>
|
||
计算器:text/html:echo "%s"|bc -l -q</p>
|
||
<h3 id="更多bc扩展库">更多bc扩展库:</h3>
|
||
<p>https://github.com/susca/bc-extensions<br>
|
||
http://phodd.net/gnu-bc<br>
|
||
http://www.numbertheory.org/gnubc/gnubc.html</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>
|
||
|
||
</div>
|
||
<p>Last Modified: 2 April 2024<br>
|
||
add js function in README<br>
|
||
<pre></pre>
|
||
</p>
|
||
|
||
<script id='jsgiscus'
|
||
src='https://giscus.app/client.js'
|
||
data-repo="torappinfo/uweb"
|
||
data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
|
||
data-category="Announcements"
|
||
data-category-id="DIC_kwDOEgNLGc4CQjsh"
|
||
data-mapping="title"
|
||
data-strict="0"
|
||
data-reactions-enabled="1"
|
||
data-emit-metadata="0"
|
||
data-input-position="top"
|
||
data-theme="light"
|
||
data-lang="en"
|
||
data-loading="lazy"
|
||
crossorigin="anonymous" async>
|
||
</script>
|
||
|
||
<footer class="site-footer">
|
||
<div class="container">
|
||
© 2018-2024 Richard H. Cao
|
||
</div>
|
||
</footer>
|
||
<!-- 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/>. -->
|
||
|
||
|
||
</body>
|
||
</html>
|