Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
15.8 使用 DynamicModule 指令設置臨時變數以平衡速度與記憶體空間
|
611
15.8  使用 DynamicModule 指令設置臨時變數以
平衡速度與記憶體空間
問題點
使 算,
notebook 檔案。[Page-613]
解決方案
使用
DynamicModule
指令中的
UnsavedVariables
選項,它用來宣告將哪些暫存變數保
留於前端介面中,而不必儲存至 notebook 檔案;並使用
DynamicWrapper
指令確保暫存
資料將從動態表示式運算得出。以下範例中,
plotPoints
變數並不需儲存於 notebook
檔案中, 存初始 座標的 位置就 足夠了,只 有在需繪 出右側 兩張圖 形時,才會 運算
plotPoints
變數值。
ch15.indd 611 2014/4/7 下午 01:14:14
612
|
第十五章
討論說明
以下 我最 初設 計的 式, 中並 未使
DynamicWrapper
指令, 而似 也行 得通,
Wolfram Theodore Gray 到, Math ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106