[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[其他] 可以绘制数学表达式的命令行

无意中发现一个神奇的工具,可以直接解析数学表达式为点阵字符图或是gif网址http://www.forkosh.com/mimetex.html
源码http://www.forkosh.com/mimetex.zip。作者有详细的介绍
  1. MimeTeX, licensed under the gpl, lets you easily embed LaTeX math in your html pages. It parses a LaTeX math expression and immediately emits the corresponding gif image, rather than the usual TeX dvi. And mimeTeX is an entirely separate little program that doesn't use TeX or its fonts in any way. It's just one cgi that you put in your site's cgi-bin/ directory, with no other dependencies.
  2. So mimeTeX is very easy to install.
  3.         Just download mimetex.zip and then type
  4.             unzip mimetex.zip
  5.             cc –DAA mimetex.c gifsave.c –lm –o mimetex.cgi
  6.         Now just mv mimetex.cgi to your cgi-bin/ directory,
复制代码
用法,解析一个latex表达式
  1. MimeTeX.exe "\Large f(x)=\int_{-\infty}^x e^{-t^2}dt"
复制代码
  1.                                                                         
  2.                      *                  *                              
  3.                     *                    *                              
  4.           ***      *                      *                             
  5.          *  *     **                      **                           
  6.          *        *                        *                           
  7.          *       **                        **                           
  8.          *       *                          *                           
  9.        ****     **           **  ****       **                          
  10.         *       **          *  **   *       **      ***************     
  11.         *       **         *   *            **                          
  12.         *       **         *   *            **                          
  13.         *       **            *             **                          
  14.         *       **            *             **                          
  15.         *       **            *    *        **                          
  16.        *        **            *    *        **      ***************     
  17.        *        **       *   **   *         **                          
  18.        *         *        ***  ***          *                           
  19.        *         **                        **                           
  20.       *           *                        *                           
  21.    *  *           **                      **                           
  22.     **             *                      *                             
  23.                     *                    *                              
  24.                      *                  *                              
  25.                                                   
复制代码

本帖最后由 happy886rr 于 2017-1-7 19:29 编辑

回复 2# CrLf
这个好像是给cgi用的,直接放在服务器上生成png格式的数学公式。

根据数据绘制散点图的现成工具这个,我正在写,还没优化完美,等完全优秀了就发布。

TOP

回复 4# 523066680
R语言还没学啊,不知有何教程推荐。

TOP

回复 9# CrLf
大师果然是js高手。

TOP

返回列表