只有想不到,没有做不到。还是在这里,我惊奇地发现Mathematica居然有DictionaryLookup和WordData这样的函数(我的6.0里就有,不知道5.x有没有)。于是,一连串牛B的Mathematica用法出现了:
包含ijk三个连续字母的单词:
In[1]:= DictionaryLookup["*" ~~ "ijk" ~~ "*"]
Out[1]= {"Dijkstra"}
连续三次出现重复字母的单词:
In[2]:= DictionaryLookup[RegularExpression[".*(.)\1(.)\2(.)\3.*"]]
Out[2]= {"bookkeeper", "bookkeepers", "bookkeeping"}
首尾三个(及以上)的字母完全相同的单词:
In[3]:= DictionaryLookup[RegularExpression["([a-z]{3,})[a-z]*\1"]]
Out[3]= {"abracadabra", "anticoagulant", "antidepressant", \
"antioxidant", "antiperspirant", "bedaubed", "beriberi", "bonbon", \
"cancan", "chichi", "couscous", "dumdum", "entailment", \
"entanglement", "entertainment", "enthrallment", "enthronement", \
"enticement", "entitlement", "entombment", "entrainment", \
"entrancement", "entrapment", "entrenchment", "froufrou", "hotshot", \
"hotshots", "ingesting", "ingoing", "ingraining", "ingratiating", \
"ingrowing", "ionization", "mesdames", "microcosmic", "murmur", \
"muumuu", "outshout", "outshouts", "physiography", "pompom", \
"redelivered", "rediscovered", "respires", "restores", \
"restructures", "tartar", "tessellates", "testates", "testes", \
"tormentor", "tsetse", "underfund", "underground"}
最长的5个只用键盘最上面一排的字母就可以打出的单词:
In[4]:= Take[
Sort[DictionaryLookup[RegularExpression["[qwertyuiop]+"]],
StringLength[#1] > StringLength[#2] &], 5]
Out[4]= {"typewriter", "repertoire", "proprietor", "perpetuity", \
"typewrote"}
最大的10个“16进制单词”:
In[5]:= Take[
Sort[DictionaryLookup[RegularExpression["[a-f]+"]],
FromDigits[#1, 16] > FromDigits[#2, 16] &], 10]
Out[5]= {"effaced", "defaced", "acceded", "faffed", "facade", \
"efface", "deface", "deeded", "decaff", "decade"}
回文单词:
In[6]:= Select[DictionaryLookup["*"], # == StringReverse[#] &]
Out[6]= {"a", "aha", "aka", "bib", "bob", "boob", "bub", "CFC", \
"civic", "dad", "deed", "deified", "did", "dud", "DVD", "eke", "ere", \
"eve", "ewe", "eye", "gag", "gig", "huh", "I", "kayak", "kook", \
"level", "ma'am", "madam", "mam", "MGM", "minim", "mom", "mum", \
"nan", "non", "noon", "nun", "oho", "pap", "peep", "pep", "pip", \
"poop", "pop", "pup", "radar", "redder", "refer", "repaper", \
"reviver", "rotor", "sagas", "sees", "seres", "sexes", "shahs", \
"sis", "solos", "SOS", "stats", "stets", "tat", "tenet", "TNT", \
"toot", "tot", "tut", "wow", "WWW"}
最长的10个没有重复字母的单词:
In[7]:= Take[
Sort[Select[DictionaryLookup["*"],
Count[Characters[#], First[Commonest[Characters[#]]]] == 1 &],
StringLength[#1] > StringLength[#2] &], 10]
Out[7]= {"ambidextrously", "unproblematic", "unpredictably", \
"sharp-tongued", "hydromagnetic", "draughtswomen", "copyrightable", \
"upholstering", "unprofitably", "unprofitable"}
单词axiom是什么意思?
In[8]:= WordData["axiom", "Definitions"]
Out[8]= {{"axiom", "Noun", "Proposition"} ->
"(logic) a proposition that is not susceptible of proof or \
disproof; its truth is assumed to be self-evident",
{"axiom", "Noun", "Saying"} -> "a saying that is widely accepted on its own merits"}
开头和结尾都是字母y的形容词:
In[9]:= Select[DictionaryLookup["y" ~~ "*" ~~ "y"],
MemberQ[WordData[#, "PartsOfSpeech"], "Adjective"] &]
Out[9]= {"yearly", "yeasty", "yucky", "yummy"}
某个人体部位,以字母x结尾:
In[10]:= Select[WordData["body", "PartTerms", "List"],
StringMatchQ[#, "*" ~~ "x"] &]
Out[10]= {"cervix", "thorax"}
另类字符串输出:
In[11]:=
DictionaryLookup["m" ~~ "*" ~~ "x"][[3]] ~~
ToString[23*3 - 2] ~~ "原创"
Out[11]= "matrix67原创"

正则么
没有sofa
可以的= =
试试
中文维基 解封了
Hannah这种人名不知道算不算哦
才看到 太有意思了~
这不就是正则表达式吗
acm中用java做正则表达式很有优势。
不知Mathematica词汇量如何……
SdK1k8Bt9VCRr
http://en.wiktionary.org/wiki/aibohphobia
[...] 昨天新装了Mathematica6 传说中强大的数学系统软件Mathematica系统 Mathematica是由美国物理学家Stephen Wolfram领导的Wolfram Research开发的数学系统软件。(官方网址: http://www.wolfram.com )它拥有强大的数值计算和符号计算能力。它的主要使用者是从事理论研究的数学工作者和其它科学工作者、以及从事实际工作的工程技术人员。Mathematica可以用于解决各种领域的涉及复杂的符号计算和数值计算的问题。Mathematica到底有多少强大呢因为刚刚入门,具体有多强大还深不可测,很明确的大学阶段的代数问题应该都能解决掉。符号演算工作方面:它能进行多项式的计算、因式分解、展开等;进行各种有理式计算,求多项式、有理式方程和超越方程的精确解和近似解;进行数值的或一般代数式的向量、矩阵的各种计算。求极限、导数、积分,幂级数展开,求解某些微分方程等;任意位数的整数或分子分母为任意大整数的有理数的精确计算,做具有任意位精度的数值(实、复数值)的计算作图方面:可以很方便地画出用各种方式表示的一元和二元函数(三维)的图形。Mathematica有很大的灵活性,可以自定义函数,变换规则,操作等;Mathematica有自己的程序语言(和C差不多),可以用这个语言写程序解决各种特殊问题。其他GEEK的应用还有…查询单词 自己制作马赛克拼图 画些分形图形 做时钟开始啃《科学计算强档Mathematica》这本书不错 看完后应该就很精通Mathematica了最后还有函数表 是不是全的不清楚 ms像DictionaryLookup这种匪夷所思的就没有 Shift – 颠倒黑白 Randy Pausch教授“最后一课” 感动千万人 [...]