找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 19504|回复: 10

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

[复制链接]
发表于 2016-10-16 13:08:40 | 显示全部楼层 |阅读模式
无意中发现一个神奇的工具,可以直接解析数学表达式为点阵字符图或是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.                                                   
复制代码
发表于 2017-1-7 17:34:12 | 显示全部楼层
话说有没有根据数据绘制散点图的现成工具?
 楼主| 发表于 2017-1-7 19:28:17 | 显示全部楼层
本帖最后由 happy886rr 于 2017-1-7 19:29 编辑

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

根据数据绘制散点图的现成工具这个,我正在写,还没优化完美,等完全优秀了就发布。
发表于 2017-1-7 22:55:18 | 显示全部楼层
回复 2# CrLf


    R语言做这个好像特别6  (日常扯
 楼主| 发表于 2017-1-7 22:56:54 | 显示全部楼层
回复 4# 523066680
R语言还没学啊,不知有何教程推荐。
发表于 2017-1-7 23:00:09 | 显示全部楼层
本帖最后由 523066680 于 2017-1-7 23:02 编辑

回复 5# happy886rr


    作为购书狂人,我入了一本 《R和Ruby数据分析之旅》,里面都是很容易提起兴趣的例子,应该是可以一口气看完的书。
不过我先压住了,觉得还是继续 C/C++ 吧,怕被脚本语言的语法糖给惯坏了。
发表于 2017-1-7 23:33:55 | 显示全部楼层
回复 6# 523066680


    你竟然会 C艹
发表于 2017-1-8 09:28:59 | 显示全部楼层
回复 7# CrLf


    不会啊,在学
发表于 2017-1-8 13:42:14 | 显示全部楼层
回复 3# happy886rr


    用 D3.js 简单实现了
 楼主| 发表于 2017-1-8 18:30:03 | 显示全部楼层
回复 9# CrLf
大师果然是js高手。
发表于 2017-1-8 20:39:27 | 显示全部楼层
回复 10# happy886rr


    现成的库。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 02:50 , Processed in 0.009317 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表