看板 Mathematica 關於我們 聯絡資訊
※ 引述《chungyuandye (養花種魚數月亮賞星星)》之銘言: : ※ 引述《oversky0 (oversky0)》之銘言: : : 請問在 Mathematica 裏要如何搜尋及取代下標(subscript)文字? : data = Subscript[x, #] & /@ Range[10] : 以下用pattern match 將下標各+10 : data /. Subscript[x_, i_] :> Subscript[x, 10 + i] : 將下標移除,變數多的時候比較方便 : data /. Subscript[x_, i_] :> ToExpression["x" <> ToString[i]] 我在 gooogle newsgroup 上問了相同的問題, Mathematica 的員工說第八版已經有支援在 Find dialog 內直接打 下標 (or any other typesetting)。 不過看了 chungyuandye 的用法, 才知道 Mathematica 還有這種語法。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.128.221.133
chungyuandye:用記事本全部取代也是可以 07/13 22:07