index.html 3.4 KB

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