Skip to Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner 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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mathematica Cookbook

Mathematica Cookbook

Sal Mangano
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9789863470106