index.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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="/uwebzh/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><a href="https://github.com/susca/bc-extensions">https://github.com/susca/bc-extensions</a><br>
  60. <a href="http://phodd.net/gnu-bc">http://phodd.net/gnu-bc</a><br>
  61. <a href="http://www.numbertheory.org/gnubc/gnubc.html">http://www.numbertheory.org/gnubc/gnubc.html</a></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. </body>
  67. </html>