uweb/bc/index.html
James Feng Cao 9cf099838a blog update
2018-12-22 11:41:03 +08:00

6.7 KiB
Raw Blame History

<html lang="en"> <head> </head>
<%= config.author %>
  • <%- "class=active" %> <% } %>> <%= __('nav.home') %>
  • <%- "class=active" %> <% } %>> <%= __('nav.tags') %>
  • <%- "class=active" %> <% } %>> <%= __('nav.archives') %>
  • <%- "class=active" %> <% } %>> <%= __('nav.about') %>
  • <%if(config.search && config.search.path){%>
  • <%= __('nav.search') %>
  • <% } %>
<% if(is_post()){ // if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){ %> <%- partial('./toc', {item: page, index: false}) %> <% } %>
<%= __('search.search') %>
配置浏览器地址栏作为超级计算器(bc)
Post2018-12-11 06:53:33 Visit

使用Android端uweb浏览器
Gnu bc计算器支持无限精度可轻易扩展函数库、常数库。

安装bc

配置文件/sdcard/uweb/cmds.txt如下

计算器:text/html:echo “%s”|bc -l -q

更多bc扩展库

扩展库可下载至/sdcard/uweb目录
https://github.com/susca/bc-extensions
http://phodd.net/gnu-bc
http://www.numbertheory.org/gnubc/gnubc.html

使用扩展库以后cmds.txt配置如下

计算器:text/html:echo “%s”|bc -l q extensions.bc scientific_constants.bc
全能计算器:text/html:echo “%s”|bc -l q *.bc


</html>